wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Problem about TableModel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Problem about TableModel " Watch "Problem about TableModel " New topic
Author

Problem about TableModel

HiBob Chu
Ranch Hand

Joined: Aug 12, 2002
Posts: 86
Two classes are included in my design : View and Model. View display all panels and components, Model deal with all option of Data object.
My problem is : where should the objects of the classes which deal with option of some components be putted(TableModel ... e.g.) , View or Model?
Who could give me any advise?
[ October 23, 2002: Message edited by: HiBob Chu ]
Thomas Fly
Ranch Hand

Joined: Sep 09, 2002
Posts: 164
Maybe this will help: Exceptions Handling


Fly by Night Consultants<br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr><i>I climbed on the back of a giant albatross<br />which flew through a crack in the cloud<br />to a place where happiness reigned...<br />all year 'round<br />the music played ever so loudly!</i><p><a href="http://thomasfly.com/songs/Traffic/Hole_in_my_Shoe_qt.htm" target="_blank" rel="nofollow">Hole in My Shoe</a><hr></blockquote>
HiBob Chu
Ranch Hand

Joined: Aug 12, 2002
Posts: 86
I have saw your that post, but it doesn't solve
my problem ,
My question focus on the relative between View and
Model instead of between remote and local.
My ideal is put the TableModel and other such model objects into View Class enven though their
name is as *Model, because that I think Model should do the data generating work, and the data
can be display in many forms which provided by many different Views, the TableMode and other
such classes are closer to View class, so they
should be putted into View.
Am I right? Any comment will be wellcome!
ilwyvd illtvd
Greenhorn

Joined: Oct 20, 2002
Posts: 13
I designed the table for remote and local both,
the model used by remote or local depends on your
data,you can get your data from local or remote
from your dataaccesor class
Jim Bedenbaugh
Ranch Hand

Joined: Nov 09, 2001
Posts: 171
HiBob,
In using the MVC pattern, my Model held the data, but changes requested by the View were captured by the Controller and passed to the Model.
Sun seemed to like my implementation just fine.


Regards,
Jim
SCJP, SCJD, SCWCD, SCEA Part I
HiBob Chu
Ranch Hand

Joined: Aug 12, 2002
Posts: 86
Hi Jim:
I think your way is better than any other I can image. But there is still a little uncomfortable: the classes' name include "Model"(TableModel e.g.),does it mean that they are a kind of Model ? :roll:
OK, I couldn't take out better one than yours.
Thanks above everyone a lot !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem about TableModel