This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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 ]
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>
Joined: Aug 12, 2002
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!
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.
SCJP, SCJD, SCWCD, SCEA Part I
Joined: Aug 12, 2002
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 !