How to restart a JFrame when creating a multiple level game?
问题 I have a one level computer game that I created , and I want to add another level . Here is the Main : public class Main extends JDialog { private static final long serialVersionUID = 1L; protected static TimerThread timerThread; static JStatusBar statusBar = new JStatusBar(); private static JFrame frame; private static final int FRAME_LOCATION_X = 300; private static final int FRAME_LOCATION_Y = 50; private static final int FRAME_SIZE_X = 850; // animator's target frames per second private