List of usage examples for javax.swing JComponent getFocusTraversalKeys
public Set<AWTKeyStroke> getFocusTraversalKeys(int id)
From source file:Main.java
public static void setComponentTraversalKeys(int direction, JComponent component, KeyStroke stroke) { Set<AWTKeyStroke> forwardKeys = component.getFocusTraversalKeys(direction); Set<AWTKeyStroke> newForwardKeys = new HashSet<AWTKeyStroke>(forwardKeys); newForwardKeys.add(stroke);/*www.ja va2 s .c o m*/ component.setFocusTraversalKeys(direction, newForwardKeys); }