Sample for building an applet