Try extending JFrame and see what that does.