This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes What are Observer and Observable? How it is usfull? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "What are Observer and Observable? How it is usfull?" Watch "What are Observer and Observable? How it is usfull?" New topic
Author

What are Observer and Observable? How it is usfull?

Anjali K Roy
Greenhorn

Joined: Apr 26, 2002
Posts: 24
Hi,
What are Observer and Observable? How it is usfull in Real time pls explain.
Timmy Marks
Ranch Hand

Joined: Dec 01, 2003
Posts: 226
according to the javadoc,
A class can implement the Observer interface when it wants to be informed of changes in observable objects.

The javadoc for the Observable class tells a little bit more about it:
sun's javadoc for java.util.Observable
These are used to allow a class (the Observable) let everyone who is interested (the Observer(s)) know about a change in its status.
Tim Troy
Ranch Hand

Joined: Apr 02, 2003
Posts: 51
Here is some more to read.
Java World How-To
Java World Tip
 
Consider Paul's rocket mass heater.
 
subject: What are Observer and Observable? How it is usfull?
 
Similar Threads
a doubt regarding course
Observer and Observable
Could someone explain the listener pattern
Frame
What is Observer and Observable?