Package java.awt

Examples of java.awt.Container.addKeyListener()


  if (root != null) {
      root.registerKeyboardAction(this, "cancel",
          KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0),
          JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
  } else if (top != null) {
      top.addKeyListener(pka);
  }
  window.getRootPane().registerKeyboardAction(this, "cancel",
                KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0),
                JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.