So I have made a game in Java, which is mostly for practice, it now works on the command line, but Now I want to implement it in the GUI with swing. I got to implement some pictures etc., but now it is not relevant. I also want to apply a Müstlicine.
My (basic) question is: How should I lay down the classes? I have found the main category of my game, and should some subclasses make me a separate class for the GUI, or should I apply it to the main category of my game? Besides, where does the mouse go to the listener?
Sorry for the newbie question, I am starting with the GUI and I want to correct it.
You can try using model view presentation patterns as described here:
No comments:
Post a Comment