I have a window with 3 separate JSplitPanes.
I’ve made three of the applications separately; hence they have everything inside of them including things like action listeners.
I’ve now created a 4th class where I have just called the other classes as objects and put them inside the pane.
Is this complying the MVC standards I should be using? Or do I effectively have to start again and have a different data structure? If so how would you suggest I structure it? Have all the ‘layout’ stuff in one class, all the ‘data structure’ stuff in another and one more with all the ‘calculations’ hence stuff like the action listeners?
I didn’t really understand what you did, but here is a simple way you can check it yourself:
Your answers should be
yesto all questions.In case you have logic in a listener method, you are doing it wrong. In case you ask a visual object to get data, you are doing it wrong.
How you organize the panes, and to make it look good is not relevant.