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
You can call dispose() on the current window and setVisible(true) on the one you want to display.
dispose()
setVisible(true)