Dear People, I am trying to do my first applet.... In reading "Java: an Eventful Approach" http://applecore.cs.williams.edu/~cs134/eof/ by Kim B. Bruce, Andrea Pohoreckyj Danyluk, Thomas P. Murtagh
I downloaded the objectdraw library that comes with the course. and stored it at C://WINDOWS/jbproject
my program is stored at: C://WINDOWS/jbproject/Stan_E_lectrue9/src/stan_e_lecture9/cloud.java
I went to the Tools | Configure Libraries |
and added the objectdraw library
when I look at the tree I see
User Home objectdraw
The error message says : " The class Applet not found"
when I created the classes I checked "can run standalone" and "generate standard methods"
I see alot of things in the "cloud class that are not part of the class. The original class seems to have totally disappeared.
Does it create problems to check "generate statndard methods" ?
Below is the start of what I have on my jbuilder screen now and below that is the start of the real Cloud class.
package stan_e_lecture9;
import objectdraw.*; import java.awt.*;
public class Cloud extends Applet { private boolean isStandalone = false; //Get a parameter value public String getParameter(String key, String def) { return isStandalone ? System.getProperty(key, def) : (getParameter(key) != null ? getParameter(key) : def); }
//Construct the applet public Cloud() { } //Initialize the applet public void init() { try { jbInit(); } etc......................................
This is the way I thought the CLoud class should start: