Stevens Miller wrote:Welcome to the Ranch.
It really doesn't make any difference. Older languages need a routine defined (or, least, its signature declared) before it is called, as you work your way down from the top of a source file to its bottom. But Java doesn't care where, within a class definition, the various methods are defined.
I use NetBeans for most of my Java work. It tends to put the GUI code above the main method, in classes that have a main method. But you can put it wherever you want.
A better rule of thumb might be that, if your classes are getting so long that its hard to find the main method (or any particular method), then you might want to think about breaking those big classes up into additional smaller ones.
Thank you for the response Stevens Miller.
I appreciate your answer as it greatly helped my understanding. This is only my first of soon to be many questions here on the Ranch.
Thank you once again for the help.