how to make jpanel in jframe visible
问题 I try to write a menue for a little game in Java. I thought it would be a good idea to have a Window class (extending JFrame) and then put a JPanel in it for the different Screens (Menue, Game, GameOver etc) If I put the buttons and stuff directly in the JFrame everything is shwown correct, but when I try to put a JPanel into the JFrame it doesn't work. Here is the code: public class Window extends JFrame{ private final int WIDTH = 800; private final int HEIGTH = 600; private final int