René Nyffenegger's collection of things on the web | |
René Nyffenegger on Oracle - Most wanted - Feedback
- Follow @renenyffenegger
|
Java applets | ||
Applets don't have a main method and are
inherited from java.applet.Applet.
The following is a simple Applet.
public class ASimpleApplet extends java.applet.Applet { public void paint(java.awt.Graphics g) { g.drawString(s_, 10, 10); } public void init() { s_=new String("hello World"); } String s_; } |