This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Label/Component/Listener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Label/Component/Listener " Watch "Label/Component/Listener " New topic
Author

Label/Component/Listener

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
If label is a Component how can I implement Component listener for label?
chetan nain
Ranch Hand

Joined: Jun 21, 2000
Posts: 159
sandeep,
label is the only component that does not generate an event. think about it. why would you want to generate an event from a label?
Vivek Shrivastava
Ranch Hand

Joined: Jun 03, 2000
Posts: 277
Hi chetan,
All AWT component can generate the following five events as all of them are associated with a component.
ComponentEvent
FocusEvent
KeyEvent
MouseEvent
MouseMotionEvent
You can double check at maha's new home, there is a link for a chart which shows a table between events and components.
check here: http://www.geocities.com/~tony-alicea/eventsandcomponents.html
Feel free to correct me.
vivek
[This message has been edited by Vivek Shrivastava (edited August 04, 2000).]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Label/Component/Listener