Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Label/Component/Listener

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If label is a Component how can I implement Component listener for label?
 
chetan nain
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic