Convert applet into standalone project