Package com.jsql.view.swing.action
Class HotkeyUtil
java.lang.Object
com.jsql.view.swing.action.HotkeyUtil
Keyword shortcut definition.
- ctrl TAB: switch to next tab,
- ctrl shift TAB: switch to previous tab,
- ctrl W: delete tab
- ctrl TAB: switch to next tab,
- ctrl shift TAB: switch to previous tab,
- ctrl W: delete tab
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addShortcut
(Menubar menubar) Create Alt shortcut to display menubar ; remove menubar when focus is set to a component.static void
addShortcut
(JRootPane rootPane, JTabbedPane valuesTabbedPane) Add action to global root (ctrl-tab, ctrl-shift-tab, ctrl-W).static void
addShortcut
(JTabbedPane tabbedPane) Add action to a single tabbedpane (ctrl-tab, ctrl-shift-tab).static void
Select all textfield content when focused.
-
Method Details
-
addTextFieldShortcutSelectAll
public static void addTextFieldShortcutSelectAll()Select all textfield content when focused. -
addShortcut
Add action to a single tabbedpane (ctrl-tab, ctrl-shift-tab). -
addShortcut
Add action to global root (ctrl-tab, ctrl-shift-tab, ctrl-W).
-