This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes jtable need some direction 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 "jtable need some direction" Watch "jtable need some direction" New topic
Author

jtable need some direction

J Hartley
Ranch Hand

Joined: Mar 29, 2001
Posts: 52
Hi, I need some direction with the MVC/jtable way of going things
I have read RH and some online resources on MVC/swing but still confused!
Im using RMI..will my tablemodel sit on my server side ok?.
anygood online resources with MVC/jtables ? i cant find too many
Joe
Aleksey Matiychenko
Ranch Hand

Joined: Apr 03, 2001
Posts: 178
First a good boon on Swing is John'Zukowski's Definitive guide to Swing.
Second. No you would not put your model on server because in a network environment it would put you application to a crawl. The model has many methods that are called by a table very often and making these calls remote would not really work.
J Hartley
Ranch Hand

Joined: Mar 29, 2001
Posts: 52
Ok but that means i cant put my model in the client because the getvalue method for example will contain code that access the remote data class and would still be going accross the wire all the time..??....im confused, where the hek do i put the model ARGHHGGH ?
Aleksey Matiychenko
Ranch Hand

Joined: Apr 03, 2001
Posts: 178
I think you model should copy the data to a vector or an array and use the local copy of the data. (THe way to do that is to read all the records once and then display them)
Remember there is no requirement to make the system real time.
J Hartley
Ranch Hand

Joined: Mar 29, 2001
Posts: 52
Hi, its all become clear now
Thanks for you help,
Joe
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jtable need some direction