1
I have a question: When creating a new Jframe in Netbeans, a main method is placed inside it, I thought it was necessary and therefore never touched it. Today I deleted it and the program continued working normally. The question is: WHEN is the main method of a Jframe used in the program? Detail that the main method of the project is of a control class and therefore theoretically the main Jframe is not executed. I am right?
On the first level of an application there should only be one Jframe, so this main method would be the input of your application. It is bad practice for programming to use more than one Jframe. All Java programs start in the method main.
– MauroAlmeida
After using Jframe how would you proceed? Using Jpanel?
– Henrique
Behold here.
– MauroAlmeida