File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Jibby Lala
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic