Xander
Xander

Reputation: 1715

GUI not showing up on running the main project in netbeans

I made a swing GUI using net beans, When I run the main project, the GUI is not showing up. But the output window shows the build successful.Run file is working ok. What might be wrong ? Thanks in advance..

Upvotes: 0

Views: 6730

Answers (1)

Ewald
Ewald

Reputation: 5751

Just guessing here, but do you actually create an instance of the GUI and then set it visible somewhere in a method, for example, your main() method?

For example

MyGuiClass app = new MyGuiClass();
app.setVisible(true);

Upvotes: 4

Related Questions