title: Run main method from GUI button in netbeans
body: <p>I have a Main class file that runs automatically when I run the program, but I don’t want this to happen. I want the GUI to come up first and then with a click of a button, I want my process to run. Is this possible?</p>