You are on page 1of 4

Event Class Description

ActionEvent Generated when a button is pressed,


a list item is double clicked, a menu
item is selected, enter key is pressed
in a text field, item in combo box is
clicked
AdjustmentEvent Generated when a scroll bar is
manipulated
ComponentEvent Generated when a component is
hidden, moved, resized or shown
ContainerEvent Generated when a component is
added to/ removed from a container
FocusEvent Generated when a component gains
or loses keyboard focus
ItemEvent Generated when a check box , list
item or combo box item is clicked.
KeyEvent Generated when input is received
from the keyboard
MouseEvent Generated when mouse is clicked,
pressed, or released. Also generated
when a mouse enters or exits a
component
MouseWheelEvent Generated when the mouse wheel is
moved
TextEvent Generated when the value of text
area or text field is changed
WindowEvent Generated when a window is
activated, closed, deactivated,
deiconified, iconified, opened or
quit.

Adapter Classes Listener Interfaces with their methods


ComponentAdapter ComponentListener
void componentResized(ComponentEvent e)
void componentMoved(ComponentEvent e)
void componentShown(ComponentEvent e)
void componentHidden(ComponentEvent e)
ContainerAdapter ContainerListener
void componentAdded(ContainerEvent e)
void componentRemoved(ContainerEvent e)
FocusAdapter FocusListener
void focusGained(FocusEvent e)
void focusLost(FocusEvent e)
KeyAdapter KeyListener
void keyPressed(KeyEvent e)
void keyReleased(KeyEvent e)
void keyTyped(KeyEvent e)
MouseAdapter MouseListener
void mouseClicked(MouseEvent e)
void mouseEntered(MouseEvent e)
void mouseExited(MouseEvent e)
void mousePressed(MouseEvent e)
void mouseReleased(MouseEvent e)
MouseMotionAdapt MouseMotionListener
er
void mouseDragged(MouseEvent e)
void mouseMoved(MouseEvent e)
WindowAdapter WindowListener
void windowActivated(WindowEvent e)
void windowClosed(WindowEvent e)
void windowClosing(WindowEvent e)
void windowDeactivated(WindowEvent e)
void windowDeiconified(WindowEvent e)
void windowIconified(WindowEvent e)
void windowOpened(WindowEvent e)
ActionListener
x
void actionPerformed(ActionEvent e)
ItemListener
x
void itemStateChanged(ItemEvent e)
AdjustmentListener
x
void
adjustmentValueChanged(AdjustmentEvent
e)
TextListener
x
void textChanged(TextEvent e)

You might also like