change AppWindow to extend JFrame