File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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).]
I agree. Here's the link:
subject: Label/Component/Listener
It's not a secret anymore!