adding JFrame class, applet