org.jext.gui
Class AbstractDisposer

java.lang.Object
  extended byjava.awt.event.KeyAdapter
      extended byorg.jext.gui.AbstractDisposer
All Implemented Interfaces:
java.util.EventListener, java.awt.event.KeyListener

public class AbstractDisposer
extends java.awt.event.KeyAdapter

This class handles a press on the ESCAPE key in a java.awt.Window instance. This includes JFrame and JDialog. When such an event is caught, the instance is simply disposed.

Author:
Romain Guy

Constructor Summary
AbstractDisposer(java.awt.Window parent)
          Creates a new KeyListener which register a specified Window.
 
Method Summary
 void finalize()
           
 void keyPressed(java.awt.event.KeyEvent evt)
           
 
Methods inherited from class java.awt.event.KeyAdapter
keyReleased, keyTyped
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDisposer

public AbstractDisposer(java.awt.Window parent)
Creates a new KeyListener which register a specified Window. Normally, this window should register this class as one of its key listeners.

Method Detail

keyPressed

public void keyPressed(java.awt.event.KeyEvent evt)

finalize

public void finalize()
              throws java.lang.Throwable
Throws:
java.lang.Throwable


Copyright © 2002 Romain Guy.