File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI + JTextComponent problem" Watch "RMI + JTextComponent problem" New topic
Author

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
Bartender

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.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI + JTextComponent problem