I have a question. I created a new project with netbeans and have main.java and i created a jframe that i called GUI.java. Now when I hit F6, my GUI.java dosen’t appear and it runs but nothing shows up cause my main is empty. But if i right click on GUI.java, it shows up the jframe.
How do I go about getting my Jframe working properly to show up when I hit F6?
Thanks in advance.
The easiest approach is to customize the
<default config>combo box and choose your preferredMain Class. Alternatively, you can put your GUI in aJPanelandadd()it to a manually createdJFrame, as shown in this example.