A bit of an odd question, but... is there a better way to code a GUI than to put everything in one huge class? The code I am talking about here is just the GUI code, not the business logic which of course I have in other classes.
For example I have a Search tab and Insert tab both containing many text box, buttons and Jtables which quickly adds up to many hundreds of lines of code. I could have a searchTab class, insertTab class but if I need one tab to communicate to another tab it gets very complex and all just to make the GUI code more readable.
So is there anything wrong with just a single class full of addButton, setText, setFont, addActionListner etc etc?
For example I have a Search tab and Insert tab both containing many text box, buttons and Jtables which quickly adds up to many hundreds of lines of code. I could have a searchTab class, insertTab class but if I need one tab to communicate to another tab it gets very complex and all just to make the GUI code more readable.
So is there anything wrong with just a single class full of addButton, setText, setFont, addActionListner etc etc?