edu.jhu.tmaj.util.swing
Class KeyListenerUtils

java.lang.Object
  extended by edu.jhu.tmaj.util.swing.KeyListenerUtils

public final class KeyListenerUtils
extends java.lang.Object

Utility methods for adding key listeners to components.


Method Summary
static void addKeyListener(java.awt.Container container, java.awt.event.KeyListener keyListener)
          Adds a KeyListener to every Component in a Container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addKeyListener

public static void addKeyListener(java.awt.Container container,
                                  java.awt.event.KeyListener keyListener)
Adds a KeyListener to every Component in a Container. This is necessary because if a KeyListener is added to just one component, a KeyEvent will only be fired if that component has the focus.