Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jtable need some direction

 
J Hartley
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, its all become clear now
Thanks for you help,
Joe
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic