Trying to implement Web applet functionality