MVC - have 2 Views but only 1 updates
Hi I'm doing a TicTacToe-game using MVC-pattern (Model/View/Controller).
When I make 2 instances of the View class and i press either view1 or view2 only view1 updates and nothing happens to view2.
Take a look at this picture, here I've pressed the window to the right, but only the left one updates properly: http://img194.imageshack.us/img194/3268/img0002zef.jpg
I'll attach the 3 classes, since both windows listens to the actionCommand there must be something wrong with the views update?
Classes:
View: [Java] MVCView - Pastebin.com
Model: [Java] MVCModel - Pastebin.com
Controller: [Java] MVCController - Pastebin.com
I would really appreciate if anyone could take the time and look thru my code and help me find a solution to this, been stuck here for soon 2 days.
Thanks in advance!