Class KeyEvents


  • public final class KeyEvents
    extends Object
    A factory for key event builders.
     JTextField textField = new JTextField();
    
     KeyEvents.builder(VK_UP)
              .onKeyPressed()
              .modifiers(ALT_DOWN_MASK | CTRL_DOWN_MASK)
              .condition(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)
              .action(new NavigateUpAction())
              .enable(textField);
     
    See Also:
    builder(int)