Same as newJMenuItem(), but adds the ALT (on Linux and Windows) or OPTION (on Mac OS X) key as a modifier.
(String title, int what)
| 1359 | * or OPTION (on Mac OS X) key as a modifier. |
| 1360 | */ |
| 1361 | private static JMenuItem newJMenuItemAlt(String title, int what) { |
| 1362 | JMenuItem menuItem = new JMenuItem(title); |
| 1363 | menuItem.setAccelerator(KeyStroke.getKeyStroke(what, SHORTCUT_ALT_KEY_MASK)); |
| 1364 | return menuItem; |
| 1365 | } |
| 1366 | |
| 1367 | |
| 1368 | // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
no outgoing calls
no test coverage detected