File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Problem about TableModel " Watch "Problem about TableModel " New topic

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="" 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

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
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.

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:
subject: Problem about TableModel
jQuery in Action, 3rd edition