Multiple JFrames for Game scenario
问题 I'm sorry if the title is worded a bit incorrectly. I have recently started a new Game project, and have thought about the use of multiple JFrame s in Java. The reason being is my game has 2 JFrame s: 1) Main Menu ( which is a singleton) 2) Battle. Now the MainMenu JFrame will initialize the Battle JFrame on its own EDT, and then hide itself via setVisible(false) ,when the game is over setVisible(true) can be called from Battle frame on the MainMenu frame singleton. NB: The reason I did this