|
STEP 4: Create and execute a
Java Applet
|
2. Right-click on the C:\Documents and Settings\ choose New -> All Templates

3. Choose Applet under the node Java Class

4. Click Next and change the <default> name to HellpApplet, click Finish
5. Notice now HelloApplet is created in the Filesystems
6. Replace the default code with the following code :
import java.applet.*;
public class HelloApplet extends Applet
{ public void paint(Graphics g)
{ g.drawString("Hello, World", 50,50);
}
}
7. Compile and Execute it, you will see the Applet pop-up
