• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Event over RMI

 
Peter McLaughlin
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.
 
Gennady Shapiro
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic