Previous | Next | Trail Map | Creating a User Interface | Using Components, the GUI Building Blocks


Events Generated by AWT Components

This table lists the kinds of events that each 1.1 AWT component can generate. To see a table listing all the listener and adapter types, along with the methods they contain, see Handling Standard AWT Events.

AWT Component Types of Events It Can Generate
action adjustment component container focus item key mouse mouse motion text window
Button X   X   X   X X X    
Canvas     X   X   X X X    
Checkbox     X   X X X X X    
CheckboxMenuItem
Note: This is not a Component subclass!
*         X          
Choice     X   X X X X X    
Component(in the API reference documentation)    X   X   X X X    
Container(in the API reference documentation)    X X X   X X X    
Dialog     X X X   X X X   X
Frame     X X X   X X X   X
Label     X   X   X X X    
List X   X   X X X X X    
MenuItem
Note: This is not a Component subclass!
X                    
Panel     X X X   X X X    
Scrollbar   X X   X   X X X    
ScrollPane     X X X   X X X    
TextArea     X   X   X X X X  
TextComponent     X   X   X X X X  
TextField X   X   X   X X X X  
Window(in the API reference documentation)    X X X   X X X   X
*CheckboxMenuItem inherits addActionListener from MenuItem, but it does not generate action events.


Previous | Next | Trail Map | Creating a User Interface | Using Components, the GUI Building Blocks