Skip to content

Instantly share code, notes, and snippets.

@goyuninfo
Created November 26, 2013 05:05
Show Gist options
  • Save goyuninfo/7653723 to your computer and use it in GitHub Desktop.
Save goyuninfo/7653723 to your computer and use it in GitHub Desktop.
package it.i88.ca.example.se.observer;
import java.util.Observable;
class Observered extends Observable {
private String event;
public String getEvent() {
return event;
}
public void updateNoticeBoard(String notice) {
this.event = notice;
setChanged();
notifyObservers(notice);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment