An applet example in netbeans