Windows
Home ] Up ] What are Events? ] The Java Event Model ] Buttons ] Pluggable Look & Feel ] [ Windows ] Mousing ] Keyboard Input ] Menus ] Separating Form from Function ] Event Multicasting ]

 

Frame as Listener
Separate Class as Listener
Member Class as Listener
Anonymous Class as Listener

 

Window events are generated when the user performs certain actions on a Java frame:

  • Opening
  • Closing
  • Closed
  • Iconified (i.e. minimized)
  • Deiconified (i.e. restored)
  • Activated
  • Deactivated

All of these cause a WindowEvent to be generated by the frame, and if you wish to handle such events, you must specify a WindowListener for them.

 

This page was last modified on 02 October, 2007