No older revisions available
No older revisions available
~cpp // NotHelloWorldApplet.java import java.awt.*; import java.awt.event.*; import javax.swing.*; class NotHelloWorldPanel extends JPanel { public void paintComponent(Graphics g) { super.paintComponent(g); g.drawString("Not a Hello, World applet", 75, 100); } } public class NotHelloWorldApplet extends JApplet { public void init() { Container contentPane = getContentPane(); contentPane.add(new NotHelloWorldPanel()); } }