Class HotkeyUtil

java.lang.Object
com.jsql.view.swing.action.HotkeyUtil

public final class HotkeyUtil extends Object
Keyword shortcut definition.
- ctrl TAB: switch to next tab,
- ctrl shift TAB: switch to previous tab,
- ctrl W: delete tab
  • Method Details

    • addTextFieldShortcutSelectAll

      public static void addTextFieldShortcutSelectAll()
      Select all textfield content when focused.
    • addShortcut

      public static void addShortcut(JTabbedPane tabbedPane)
      Add action to a single tabbedpane (ctrl-tab, ctrl-shift-tab).
    • addShortcut

      public static void addShortcut(JRootPane rootPane, JTabbedPane valuesTabbedPane)
      Add action to global root (ctrl-tab, ctrl-shift-tab, ctrl-W).
    • addShortcut

      public static void addShortcut(Menubar menubar)
      Create Alt shortcut to display menubar ; remove menubar when focus is set to a component.
      Parameters:
      menubar - The menubar to display