Observer observer = (Observable o, Object arg) -> {
       System.err.println("Got " + arg);
    };
    observable.addObserver(observer);
    
    button.addActionListener(l -> {
      Display.getInstance().callSerially(() -> {
          observable.notifyObservers(new Date());
      });
    });

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3a6b1040-6b2c-445e-96f2-5940839ec25c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to