Java Reference
In-Depth Information
FIGURE 17.9
Refactor in Eclipse.
Add the package applet statement to the first line of that class, or use Eclipe to
help you do that, just as you did in the previous exercise. This will fix the first problem.
To fix the second problem, you will need to import the ErrorMsg class from the
java4cobol package you just created. After the two import statements, add a new
one: import java4cobol.ErrorMsg; . The beginning of the Java source for applet\Hel-
loWorld should now look like this:
package applet;
import java.applet.Applet;
import java.awt.Graphics;
import java4cobol.ErrorMsg;
public class HelloWorld extends Applet {
...
Search WWH ::




Custom Search