Events Defined in the Container and Component Classes
  • addContainerListener(ContainerListener l) Adds the specified container listener to receive container events from this container.
  • removeContainerListener (ContainerListener l) Removes the specified container listener so it no longer receives container events from this container.
  • addComponentListener(ComponentListener l) Adds the specified component listener to receive component events from this component.
  • addFocusListener(FocusListener l) Adds the specified focus listener to receive focus events from this component when this component gains input focus.
  • addInputMethodListener (InputMethodListener l) Adds the specified input method listener to receive input method events from this component.
  • addKeyListener(KeyListener l) Adds the specified key listener to receive key events from this component.
  • addMouseListener(MouseListener l) Adds the specified mouse listener to receive mouse events from this component.
  • addMouseMotionListener (MouseMotionListener l) Adds the specified mouse motion listener to receive mouse motion events from this component.
  • removeComponentListener (ComponentListener l) Removes the specified component listener so that it no longer receives component events from this component.
  • removeFocusListener(FocusListener l) Removes the specified focus listener so that it no longer receives focus events from this component.
  • removeInputMethodListener (InputMethodListener l) Removes the specified input method listener so that it no longer receives input method events from this component.
  • removeKeyListener(KeyListener l) Removes the specified key listener so that it no longer receives key events from this component.
  • removeMouseListener(MouseListener l) Removes the specified mouse listener so that it no longer receives mouse events from this component.
  • removeMouseMotionListener (MouseMotionListener l) Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component.


Figure 4