List of usage examples for javax.swing Action DISPLAYED_MNEMONIC_INDEX_KEY
String DISPLAYED_MNEMONIC_INDEX_KEY
To view the source code for javax.swing Action DISPLAYED_MNEMONIC_INDEX_KEY.
Click Source Link
Integer
that corresponds to the index in the text (identified by the NAME
property) that the decoration for a mnemonic should be rendered at. From source file:Main.java
public ShowAction() { super("About"); putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_A)); putValue(Action.NAME, "Go to number "); putValue(Action.DISPLAYED_MNEMONIC_INDEX_KEY, 1); }