SharedCore with common routines in Applet and JFrame