Пример #1
0
 private void removeCTRLTabFromFocusTraversal() {
   KeyStroke ctrlTab = KeyStroke.getKeyStroke("ctrl TAB");
   Set<AWTKeyStroke> forwardKeys =
       new HashSet<>(this.getFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS));
   forwardKeys.remove(ctrlTab);
   this.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, forwardKeys);
 }
Пример #2
0
 private void removeCTRLSHIFTTabFromFocusTraversal() {
   KeyStroke ctrlShiftTab = KeyStroke.getKeyStroke("ctrl shift TAB");
   Set<AWTKeyStroke> backwardKeys =
       new HashSet<>(this.getFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS));
   backwardKeys.remove(ctrlShiftTab);
 }