Help manipulating Swing default ButtonModel remotely. (NPE on the second client)
posted 4 years ago
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.