When I delete main method, class stays the same, there aren't any compiling errors, I want to know why netbeans generates this main method in all my classes, main method has a invokeLater, does this create a new thread for the current class? what if I've got more than one constructor?
You can look at that generated main method as the one for checking your GUI behavior at runtime. Main method generated by NetBeans GUI builder is there so you can run your class stand-alone, to see and check how each of your GUI classes behaves when run. If that's not the starting point for your application (you have your own main method with code to run the application) you can remove each of those main methods generated by NetBeans without any damaging side effect to your application.
The quieter you are, the more you are able to hear.
Kemal Sokolovic wrote:You can look at that generated main method as the one for checking your GUI behavior at runtime. Main method generated by NetBeans GUI builder is there so you can run your class stand-alone, to see and check how each of your GUI classes behaves when run. If that's not the starting point for your application (you have your own main method with code to run the application) you can remove each of those main methods generated by NetBeans without any damaging side effect to your application.
I deleted the main method and pre-visualization of the plugins is still showin my form correctly, I guess I don't need that method anyway, looks like IDE's garbage, since I don't know how it can be usefull to me or where I can check this functionality, I think I'll be erasing them all. Thanks for your answer.