What is source and listener?

Answer Posted / janet

Source: A source is an object that generates an event.this
occurs when the internal state of that object changes in
some way.
Listener: A listener is an object that is notified when an
event occurs.It has two major requirements First,it must
have been registered with one or more sources to receive
notifications about specific types of events.Second,it must
implement methods to receive and process these
notifications.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..

1991


Why are some of the class and element names counter-intuitive?

848


How many times may an objects finalize() method be invoked by the garbage collector?

898


How primary key is implemented in Oracle?

2174


What is a class loader?

1055


Which javutil classes and interfaces support event handling?

824


what is the use of State Factories?

2134


In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?

2458


How substring() method of string class create memory leaks?

800


Name three component subclasses that support painting?

848


What is the purpose of the wait(), notify(), and notifyall() methods?

820


What is ripple effect?

872


What are local interfaces? Describe.

925


Can I map more than one table in a cmp?

826


Can constructors be synchronized in java?

876