Java swing application, close one window and open another when button is clicked

前端 未结 7 1974
离开以前
离开以前 2020-12-03 07:56

I have a netbeans Java application that should display a JFrame (class StartUpWindow extends JFrame) with some options when the application is launched, then the user clicks

7条回答
  •  忘掉有多难
    2020-12-03 08:23

    You can call dispose() on the current window and setVisible(true) on the one you want to display.

提交回复
热议问题