Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Model from MVC concerns

 
Roman Yankin
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
As far as my assignment is almost complete I will post a series of to discussion threads covering some of my approaches and decisions I have made that I would like to receive critics and to identify potential problems with some help from you.

My first concern is the fact that I actually have two models which basically replicate each other.

One model resides as inner class of my primary window. I intended to use it as global model that would provide data to all GUI elements. In real life it only provides data to the JTable. One more thing about this Model is that its caching data that is directly read from data file

The other model is the JTable model, this model maintains the copy of data from the previous global model

So the problem I see is that I have two data containers which contain almost absolutely identical data, what is your opinion on this?
 
Jethro Borsje
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think having two models is a bit redundant, in my assignment I have only one model: a subclass of the AbstractTableModel which contains all necessary data.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic