posted 12 years ago
I have a checkers game.
Model contains the game state and the view naturally displays the game.
The view is contained in a JFrame and this contains a few JPanels.
The model extends Observable and one of the views JPanels implements Observer.
When creating the model instance to hold the game state I need to run addObserver(JPanel instence) for the view to be notified when the model is updated.
Should I make the JPanel instance a singleton?
Kind of confused with so many references floating around.