//java source file
import java.applet.*;
import java.awt.*;
public class FancyText extends Applet {
String text="I like Java!";
public void paint(Graphics g) {
g.drawString(text,30,30);
}
public void setText(String s) {
text=s;
repaint();
}
}
//Loading and Accessing an Applet
Accessing Applets
WIDTH=450 HEIGHT=150>
[The FancyText Applet]