GUI and JPanel in the same window... basic problem.
I'm making a java game, where the game screen (what's drawn) is in a single Jpanel class that I add to a JFrame class, my main game window. I'd like to be able to use swing GUI buttons, etc in the same window. Not on top of the JPanel, but inside the window along the edges. But when I try to have both on the screen, the JPanel is reduced to a single pixel in size. How do I draw both the JPanel and the GUI in the same window (JFrame)? Thanks