I have to write a GUI without an IDE.
Is this bad practice: Make a new regular class for the GUI, define each component of the GUI as a variable. Set the properties in the constructor, then let methods access it easily.
Or do I have to make things static.. as when I use the example at the bottom of this page: Java BorderLayout Example I'm not sure on how to divide it into multiple methods, instead of just one.
Thanks for your help.