Example usage for javax.swing Action DISPLAYED_MNEMONIC_INDEX_KEY

List of usage examples for javax.swing Action DISPLAYED_MNEMONIC_INDEX_KEY

Introduction

In this page you can find the example usage for javax.swing Action DISPLAYED_MNEMONIC_INDEX_KEY.

Prototype

String DISPLAYED_MNEMONIC_INDEX_KEY

To view the source code for javax.swing Action DISPLAYED_MNEMONIC_INDEX_KEY.

Click Source Link

Document

The key used for storing an Integer that corresponds to the index in the text (identified by the NAME property) that the decoration for a mnemonic should be rendered at.

Usage

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);

}