Right now you would create a new JFrame for each of them, if you have 50 you would have 50 windows popping up.
Usually people use the MVC design for applications with a GUI. You could read up on...
Type: Posts; User: Cornix
Right now you would create a new JFrame for each of them, if you have 50 you would have 50 windows popping up.
Usually people use the MVC design for applications with a GUI. You could read up on...
No, its not a good design to put each class into a separate package, that would be rather pointless.
But its a bad design to have so many package-private variables, especially if they are not really...
You never create nor add any listeners in the code you have posted so its hard to really tell what you are trying to do.
Since your variables are package-private you should have access to them as...
If you want to use different values for every subclass of a class you can simply define an abstract method in the super class and have it implemented in each subclass.
For example:
public...