posted 13 years ago
Hey, I'm trying to make my program use only one JFrame instead of popping up new windows everytime it changes the screen. To do this I made a control class that would load the JPanel, wait until the JPanel finished what it had to do, then would remove it and place the next JPanel on the screen. Well, my JPanels don't seem to like that as when I try to remove the one JPanel, it simply keeps the button it clicked pressed down and no longer works. If this is not possible, is there a way I can command my JFrame to close? Here's the methods code. Note: It loads up the MainMenu class, and then the user clicks the button newGame. This is the point where it locks up. Is there a problem in my ActionPerformed class?