March 2002
Intermediate to advanced
496 pages
8h 51m
English
You may not always be able to make the class you want to observe a subclass of Observable. In particular, your class may already be a subclass of something other than Object. In this case, you can provide your class with an Observable object and have your class forward key method calls to it. The Component class in java.awt uses this approach, although it uses a PropertyChangeSupport object instead of an Observable object.
The PropertyChangeSupport class is quite similar to the Observable class but is part of the java.beans package. The JavaBeans API exists to support the creation of reusable components. This API has found its greatest applicability to GUI components, but you can certainly apply it elsewhere. ...
Read now
Unlock full access