wood burning stoves 2.0*
The moose likes Distributed Java and the fly likes RMI + JTextComponent problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI + JTextComponent problem" Watch "RMI + JTextComponent problem" New topic

RMI + JTextComponent problem

Lukas Stephienn
Ranch Hand

Joined: Dec 23, 2005
Posts: 60
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 ]

SCJP 5.0 (91%), SCBCD 1.3 (94%), SCWCD 1.4 (88%)
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

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.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
jQuery in Action, 2nd edition
subject: RMI + JTextComponent problem
Similar Threads
SCJP passed with 91%
Does component may invoke methods of client?
SCBCD 1.3 passed with 94%
Can not decide: serialize on a static field
Hard Exam question