Skip to content

Instantly share code, notes, and snippets.

@seyedsahil
Last active March 8, 2020 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seyedsahil/3fb6052f686f32ee5aac92760a9b065f to your computer and use it in GitHub Desktop.
Save seyedsahil/3fb6052f686f32ee5aac92760a9b065f to your computer and use it in GitHub Desktop.
Creating an Observer instance
package org.sydlabz.mvc;
import java.util.Observer;
import java.util.Observable;
public class MessageListener implements Observer {
@Override
public void update(Observable messageQueue, Object prameters) {
// Handle the state change here.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment