This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.