1 | This prints in applet window, the classic Hello World string! |
2 | import java.awt.Graphics |
3 | public class HelloWorld extends java.applet.Applet |
4 | { |
5 | public void init() { |
6 | } |
7 | public void paint(Graphics g) { |
8 | g.drawString("Hello world!", 50, 25); |
9 | } |
10 | } |