Example usage for javafx.scene.control Button setMnemonicParsing

List of usage examples for javafx.scene.control Button setMnemonicParsing

Introduction

In this page you can find the example usage for javafx.scene.control Button setMnemonicParsing.

Prototype

public final void setMnemonicParsing(boolean value) 

Source Link

Usage

From source file:de.ks.text.AsciiDocEditor.java

private void addCommands() {
    editorCommands.forEach(c -> {//from   w w w . j  a v a2  s.c o  m
        Button button = new Button();
        button.setMnemonicParsing(true);
        button.focusedProperty().addListener((p, o, n) -> {
            if (n) {
                focusOnEditor = false;
            }
        });
        c.initialize(this, button);
        this.commands.put(c.getClass(), c);
        button.setText(Localized.get(c.getName()));
        button.setOnAction(e -> c.execute(editor));
        editorCommandPane.getChildren().add(button);
    });
}