This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths 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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Label/Component/Listener " Watch "Label/Component/Listener " New topic


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
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.
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:
Feel free to correct me.
[This message has been edited by Vivek Shrivastava (edited August 04, 2000).]
Don't get me started about those stupid light bulbs.
subject: Label/Component/Listener
It's not a secret anymore!