problem with implementing MVC

Thread Solved

Join Date: Oct 2007
Posts: 280
Reputation: joshmo is an unknown quantity at this point 
Solved Threads: 19
joshmo joshmo is offline Offline
Posting Whiz in Training

problem with implementing MVC

 
0
  #1
Mar 23rd, 2009
I have recently encoutered an error that I have failed to figure out while trying to implement something in MVC. I have used a similar code on another program which seems to work but I cant figure out why this one is not working.
I get the error code "cannot find symbol class myGameModel". this error is repeated for the controller, panel and view.
I will post the controller and model only. Hope to get some advice. thanks.
  1. //CONTROLLER
  2. package Game;
  3. public class myGameController{
  4. private myGameModel model;
  5. private myGameView view;
  6.  
  7. public myGameController(myGameModel model){
  8.  
  9. this.model=model;
  10. }
  11.  
  12. public void set(myGameView view){
  13.  
  14. this.view=view;
  15. }
  16.  
  17. public void newGame(myGameModel model){
  18.  
  19. model.newGame();
  20. }
  21.  
  22. }
  23.  
  24. //MODEL
  25. package Game;
  26. import java.util.Observable;
  27. import java.*;
  28.  
  29. public class myGameModel extends Observable {
  30. private myGameController controller;
  31. private boolean turn;
  32. private int[][] gameBoard=new int[3][3];;
  33.  
  34. public void newGame()
  35. {
  36. //some code
  37. }
  38. }
PS. the above code is just a structure but when I compile the individual files, It cant seem to find other classes
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC