• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Jibby Lala
Ranch Hand
Posts: 35
  • 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,


It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!