File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Help manipulating Swing default ButtonModel remotely. (NPE on the second client) 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 » Swing / AWT / SWT
Bookmark "Help manipulating Swing default ButtonModel remotely. (NPE on the second client)" Watch "Help manipulating Swing default ButtonModel remotely. (NPE on the second client)" New topic
Author

Help manipulating Swing default ButtonModel remotely. (NPE on the second client)

Jibby Lala
Ranch Hand

Joined: Aug 29, 2010
Posts: 35
Hi Experts,

I have problem implementing the easy scenario, my intent is to use swing default component's model, so i choose the swing `ButtonModel` for try, i create an instance of model on Server and to update the other models on Clients(local ButtonModel) implement RMI Callbacks.*


The idea is to update the other local `ButtonModel` on clients, when some change happen on the Server shared model but i have problem in implementing this, as i m not finding any realization of such scenario.

This is Client code which should set the button enabled in case of Server button enable by any other Client:



This is server site code implementing shared model:


i would appreciate the concrete implementation of your idea or correction of mine rather then meta discussion.

many thanks,

Jibbylala


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help manipulating Swing default ButtonModel remotely. (NPE on the second client)
 
Similar Threads
Serialized object or Remote object ?
Not able to use two ports in RMI chat application
Problem with pass-by-reference ?
how to run RMI with Eclips
Implementing multiuser interactive animation with RMI callbacks.