
Do not use the JBuilder Applet Wizard at this ste p
1. Following the following steps t o create your first applet
a. Import the following pac kages into your program
import java.applet.* ;
import java.awt.*;
b. Create a c lass of your c hoice
c. Extend the class from java.applet.Applet class
d. Add the following method
public void paint(Graphics g)
e. Add g.drawString(“Hello World”,25,25)
f. Save t he program to a file HelloWorld.java
g. Compile the file
h. Create the following html file
<html>
<applet c odebase=“.” code=“HelloWorld.c lass” height=100
width=100 >
</applet>
</html>
i. Save t his file to the locat ion where your class file resides
2. Try JBuilder to create a similar applet
3.
Exercise-01
Java-Programming