Advanced Uses of the Observer Pattern in Java
Multicasting, Property Changes, and Other Issues
|
Prof. David Bernstein
James Madison University
|
|
Computer Science Department
|
bernstdh@jmu.edu
|
Creating Subjects of AWT Events (cont.)
javaexamples/multicaster/CombinationField.java
Creating Subjects of Changes in Object State (cont.)
A Subject
javaexamples/propertychange/Rectangle.java
Creating Subjects of Changes in Object State (cont.)
An Observer
javaexamples/propertychange/PropertyLabel.java
Creating Subjects of Changes in Object State (cont.)
Usage
javaexamples/propertychange/RectanglePanel.java
There's Always More to Learn