Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

label a. events

 
zhewen
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have just read your exam errta forum, who can tell me why Label does not generate any Events, i think Label is one of Component, it should generate at least KeyEvent, FocusEvent etc..., correct me please.

regds
zhewen
 
Vivek Shrivastava
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
As per my knowledge all component throws following five events
1. Component
2. Key
3. Focus
4. Mouse
5. Mouse motion
Component, canvas and label do not throw any event other than that.
Please feel free to correct me.

vivek

 
Nirmala
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I guess Labels do not respond to user inputs and they do not send out events. So it will not generateany events;
Vivek:
1. Button----ActionEvent
2. Canvas ----MouseMotion,Key events
3. Checkbox---Item events,when they are selected
4. Choice ----Send Item events
5. List ----Selecting Item cause Item events ,but double clicking sends Action event
6. Text Field---Text events, Key events and Action event when 'Enter' key is pressed.
7. Text Area ----Text events ,Key events
etc ,there are others,but I guess these are very often used and familiar.
Hope this might helps.
Thanks
Nirmal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic