diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-05-05 08:45:31 +0200 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-05-05 08:45:31 +0200 |
| commit | 7c11411dcf3c410124685d81f4e040ef2e7b85c7 (patch) | |
| tree | 0e3cecc00888c26869ad58ad6416a4e661bdea8b /src/de/fhswf/in/inf/java2/aufgabe05/view/RootLayout.fxml | |
| parent | cc1f688e7b9e17ff702af3e1f4e23fc8cd68ae88 (diff) | |
| download | Java2-7c11411dcf3c410124685d81f4e040ef2e7b85c7.tar.gz Java2-7c11411dcf3c410124685d81f4e040ef2e7b85c7.zip | |
Use mnemonics und accalerators
Diffstat (limited to 'src/de/fhswf/in/inf/java2/aufgabe05/view/RootLayout.fxml')
| -rw-r--r-- | src/de/fhswf/in/inf/java2/aufgabe05/view/RootLayout.fxml | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/src/de/fhswf/in/inf/java2/aufgabe05/view/RootLayout.fxml b/src/de/fhswf/in/inf/java2/aufgabe05/view/RootLayout.fxml index c060ace..3acea57 100644 --- a/src/de/fhswf/in/inf/java2/aufgabe05/view/RootLayout.fxml +++ b/src/de/fhswf/in/inf/java2/aufgabe05/view/RootLayout.fxml @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> +<?import javafx.scene.input.*?> <?import java.lang.*?> <?import javafx.scene.control.*?> <?import javafx.scene.layout.*?> @@ -9,20 +10,32 @@ <top> <MenuBar BorderPane.alignment="CENTER"> <menus> - <Menu mnemonicParsing="false" text="Datei"> + <Menu text="_Datei"> <items> - <MenuItem mnemonicParsing="false" onAction="#handelBeenden" text="Beenden" /> + <MenuItem onAction="#handelBeenden" text="_Beenden"> + <accelerator> + <KeyCodeCombination alt="UP" code="Q" control="UP" meta="UP" shift="UP" shortcut="DOWN" /> + </accelerator></MenuItem> </items> </Menu> - <Menu mnemonicParsing="false" text="Themes"> + <Menu text="_Themes"> <items> - <MenuItem mnemonicParsing="false" onAction="#handelModena" text="MODENA" /> - <MenuItem mnemonicParsing="false" onAction="#handelCaspian" text="CASPIAN" /> + <MenuItem onAction="#handelModena" text="_MODENA"> + <accelerator> + <KeyCodeCombination alt="UP" code="M" control="UP" meta="UP" shift="UP" shortcut="DOWN" /> + </accelerator></MenuItem> + <MenuItem onAction="#handelCaspian" text="_CASPIAN"> + <accelerator> + <KeyCodeCombination alt="UP" code="C" control="UP" meta="UP" shift="UP" shortcut="DOWN" /> + </accelerator></MenuItem> </items> </Menu> - <Menu mnemonicParsing="false" text="Hilfe"> + <Menu text="_Hilfe"> <items> - <MenuItem mnemonicParsing="false" onAction="#handelInfo" text="Info" /> + <MenuItem onAction="#handelInfo" text="_Info"> + <accelerator> + <KeyCodeCombination alt="UP" code="I" control="UP" meta="UP" shift="UP" shortcut="DOWN" /> + </accelerator></MenuItem> </items> </Menu> </menus> |
