Simple Class Demonstrating the Observer pattern used by Java Swing