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 a. events 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 a. events" Watch "label a. events" New topic

label a. events

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.

Vivek Shrivastava
Ranch Hand

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


Ranch Hand

Joined: Jun 28, 2000
Posts: 93
I guess Labels do not respond to user inputs and they do not send out events. So it will not generateany events;
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.
I agree. Here's the link:
subject: label a. events
It's not a secret anymore!