wood burning stoves*
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
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: http://www.geocities.com/~tony-alicea/eventsandcomponents.html
Feel free to correct me.
[This message has been edited by Vivek Shrivastava (edited August 04, 2000).]
I agree. Here's the link: http://aspose.com/file-tools
subject: Label/Component/Listener
Similar Threads
how to read the label name for a component
Link URL through applet
Can't bind JComponent location to Jlabel text property
JtableHeader with two separate listeners, one for each component : classic label and extra checkbox