Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Event over RMI

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Extended AbstractTableModel --> FlightTableModel
Calling fireTableRowsUpdated(rowStart, rowEnd) which forces the JTable object to repaint the UI table.
This completes successfully whilst in local mode. However in remote mode it gets as far as updating the data in the (AbstractTableModel)FlightTableModel.
The JTable Object registers an interest in the (AbstractTableModel)FlightTableModel. It receives notification of the data having changed from the "tableChanged(TableModelEvent tme)" entry point.
The local JTable Object - on screen will not receive the TableModelEvent from the RMI Server, therefore the data has changed yet the JTable itself has not been notified.
If anyone has ideas or come across the same issue, I�d be glad of a discussion or reply.
 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure what you are trying to accomplish by event handling but auto-update is not required by FBN (if that's what you're after). I really see no reason to go that deep into JTable unless you want to learn these intricacies, which is perfectly ok.
GUI components are not really designed for remote execution, maybe your TableModel has a problem serializing...
[ January 16, 2002: Message edited by: Gennady Shapiro ]
 
Peter McLaughlin
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply Ranch hand. I think i'll take your advice an leave it there, for this certification.
 
You ridiculous clown, did you think you could get away with it? This is my favorite tiny ad!
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic