List of usage examples for javafx.scene.control Button setMnemonicParsing
public final void setMnemonicParsing(boolean value)
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); }); }