how to create small applet