Code example for Observable

Methods: notifyObservers

0
   
   
  public static void fireEvent(Observable observable, Event.States state, Object obj) {
    Object source = obj != null ? obj : observable;
    Event e = new Event(source, state);
    observable.notifyObservers(e);
  } 
   
} 
Contextual code suggestions in your IDE  Get Codota for Java