Title: (Optional) Create a Java applet.
Course: Java Programming (Oracle) (10055) > Section: Creating Applets, Events, and Other Topics

Creation of a basic applet must comply with the instructor's guidelines and involve written, executable, functioning code. An example of such an applet follows:

// A minimal applet.
import java.awt.*;
import java.applet.*;

public class SimpleApplet extends Applet {
public void paint(Graphics g) {
g.drawString("Java makes applets easy.", 20, 20);
}
}

listing 2
import java.awt.*;
import java.applet.*;
/*
<applet code="SimpleApplet" width=200 height=60>
</applet>
*/

public class SimpleApplet extends Applet {
public void paint(Graphics g) {
g.drawString("Java makes applets easy.", 20, 20);
}
}