This discussion is archived
5 Replies Latest reply: May 2, 2011 1:17 PM by 802316 RSS

Is it possible to call Listener's methods remotely ?

808188 Newbie
Currently Being Moderated
Hello All,

These methods belongs to
ActionListener
and
PropertyChangeListener
i need to realize these two cases and similar with other swing classes
PropertyChangeEvent , ActionEvent
.

The server should call this method for each client, when ever some change occur in model:
 public void propertyChange(PropertyChangeEvent evt) {
        for (AbstractViewPanel view: registeredViews) {
            view.modelPropertyChange(evt);
        }
    }
in case of an event on one client, each client actionPerformed() should be called from server:
@Override
public void actionPerformed(ActionEvent e)  {
}
any help really appreciated,

jibbylala

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points