List of usage examples for java.awt AWTKeyStroke getAWTKeyStroke
public static AWTKeyStroke getAWTKeyStroke(int keyCode, int modifiers)
From source file:MainClass.java
public MyPanel() { super(true);// w w w . ja v a2s .c o m java.util.Set upKeys = new java.util.HashSet(1); upKeys.add(AWTKeyStroke.getAWTKeyStroke(KeyEvent.VK_UP, 0)); setFocusTraversalKeys(KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS, upKeys); }