Use of Observable

What is the use of Observable class. where it should be used?
[68 byte] By [kannan_sdna] at [2007-11-26 17:29:15]
# 1
java.sun.com/j2se/1.4.2/docs/api/java/util/Observable.html
AbiSSa at 2007-7-8 23:57:12 > top of Java-index,Java Essentials,New To Java...
# 2
It should be used wherever you need it to be used!!!!!Ted.
ted_trippina at 2007-7-8 23:57:12 > top of Java-index,Java Essentials,New To Java...
# 3
Used whenever u want to be alerted when a value is changed.
AbiSSa at 2007-7-8 23:57:12 > top of Java-index,Java Essentials,New To Java...
# 4
whenever you can't be bothered to roll the Observer pattern yourself, and don't care if it's suited to your problem or not, or even works properly
georgemca at 2007-7-8 23:57:12 > top of Java-index,Java Essentials,New To Java...
# 5

Take a print spooler for example... it might extend Observable... so that client applications (observers) can recieve notifications from the pinter.

Wouldn't it be nice if the porkchop who keeps printing on Letter gets notified in msWord (or more likely msProject)... "Hey porkchop this printer only has A4 paper!"

corlettka at 2007-7-8 23:57:12 > top of Java-index,Java Essentials,New To Java...