This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes label a. events Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "label a. events" Watch "label a. events" New topic
Author

label a. events

zhewen
Ranch Hand

Joined: Jul 18, 2000
Posts: 35
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

Joined: Jun 03, 2000
Posts: 277
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

Joined: Jun 28, 2000
Posts: 93
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: label a. events
 
Similar Threads
How to share the same events for multiple components?
WINDOW_ACTIVATED for Window
CheckboxMenuItem
Event Generation
Events