Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI + JTextComponent problem

 
Lukas Stephienn
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My GUI application is based on RMI.
Application allows to add tabs to JTabbedPane, which contains editable text components. Operation is possible on client side (normal invocation) and on server side (REMOTE invocation).
When client is adding tab everything is OK. But when tab is added through remote invocation problem occurs. Though carriage is visible (it means component is editable) text component doesnt react when key is typed and it is impossible to write something in this component.

If anyone have ideas about how resolve this problem I would be pleased.

[ December 23, 2005: Message edited by: Lucius Stephienn ]
[ December 23, 2005: Message edited by: Lucius Stephienn ]
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm... can you post some of your code?

This sounds like you might be updating the GUI outside of the event thread... see this article on Sun's webiste - Threads and Swing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic