|
4 | 4 | <?import javafx.scene.control.ListView?> |
5 | 5 | <?import javafx.scene.control.Separator?> |
6 | 6 | <?import javafx.scene.control.ToolBar?> |
7 | | -<?import javafx.scene.layout.AnchorPane?> |
8 | 7 | <?import javafx.scene.layout.GridPane?> |
9 | 8 |
|
10 | 9 | <?import javafx.scene.control.Label?> |
11 | | -<AnchorPane fx:id="root" maxHeight="400.0" maxWidth="600.0" xmlns="http://javafx.com/javafx/8.0.172-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controller.PrefixMenuController"> |
12 | | - <GridPane> |
13 | | - <ToolBar fx:id="toolBar" GridPane.columnIndex="0" GridPane.rowIndex="0" GridPane.columnSpan="2"> |
| 10 | +<?import javafx.scene.layout.BorderPane?> |
| 11 | +<?import javafx.scene.text.Text?> |
| 12 | +<BorderPane fx:id="root" |
| 13 | + maxHeight="400.0" |
| 14 | + maxWidth="600.0" |
| 15 | + xmlns="http://javafx.com/javafx/8.0.172-ea" |
| 16 | + xmlns:fx="http://javafx.com/fxml/1" |
| 17 | + fx:controller="controller.PrefixMenuController" |
| 18 | + onKeyPressed="#keyPressedAction"> |
| 19 | + <top> |
| 20 | + <ToolBar fx:id="toolBar"> |
14 | 21 | <Label fx:id="statusLbl"/> |
15 | 22 | </ToolBar> |
16 | | - <ListView fx:id="prefixList" prefHeight="400.0" prefWidth="400.0" GridPane.columnIndex="0" GridPane.rowIndex="1" /> |
17 | | - <ToolBar orientation="VERTICAL" prefHeight="400.0" prefWidth="0.0" GridPane.columnIndex="1" GridPane.rowIndex="1"> |
18 | | - <Button fx:id="addPrefixBtn" maxWidth="Infinity" onMouseClicked="#addPrefixAction" text="Add New Prefix" /> |
19 | | - <Button fx:id="remPrefixBtn" maxWidth="Infinity" disable="true" onMouseClicked="#removePrefixAction" text="Remove Selected Prefix" /> |
20 | | - <Separator /> |
21 | | - <Button fx:id="clrPrefixBtn" maxWidth="Infinity" onMouseClicked="#clearPrefixAction" text="Clear All Prefixes" /> |
22 | | - <Separator /> |
23 | | - <Button fx:id="savPrefixBtn" maxWidth="Infinity" onMouseClicked="#savePrefixAction" text="Save Prefixes" /> |
24 | | - <Button fx:id="lodPrefixBtn" maxWidth="Infinity" onMouseClicked="#loadPrefixAction" text="Load Prefixes" /> |
25 | | - <Separator /> |
26 | | - <Button fx:id="cmtPrefixBtn" maxWidth="Infinity" onMouseClicked="#commitPrefixAction" text="Commit Prefixes" /> |
27 | | - <Button fx:id="canPrefixBtn" maxWidth="Infinity" onMouseClicked="#cancelPrefixAction" text="Cancel Prefixes" /> |
| 23 | + </top> |
| 24 | + <center> |
| 25 | + <GridPane> |
| 26 | + <ListView fx:id="prefixList" prefHeight="400.0" prefWidth="400.0" GridPane.columnIndex="0" GridPane.rowIndex="1" /> |
| 27 | + <ToolBar orientation="VERTICAL" prefHeight="400.0" prefWidth="0.0" GridPane.columnIndex="1" GridPane.rowIndex="1"> |
| 28 | + <Button fx:id="addPrefixBtn" maxWidth="Infinity" onMouseClicked="#addPrefixAction" text="Add New Prefix" /> |
| 29 | + <Button fx:id="remPrefixBtn" maxWidth="Infinity" disable="true" onMouseClicked="#removePrefixAction" text="Remove Selected Prefix" /> |
| 30 | + <Separator /> |
| 31 | + <Button fx:id="clrPrefixBtn" maxWidth="Infinity" onMouseClicked="#clearPrefixAction" text="Clear All Prefixes" /> |
| 32 | + <Separator /> |
| 33 | + <Button fx:id="savPrefixBtn" maxWidth="Infinity" onMouseClicked="#savePrefixAction" text="Save Prefixes" /> |
| 34 | + <Button fx:id="lodPrefixBtn" maxWidth="Infinity" onMouseClicked="#loadPrefixAction" text="Load Prefixes" /> |
| 35 | + <Separator /> |
| 36 | + <Button fx:id="cmtPrefixBtn" maxWidth="Infinity" onMouseClicked="#commitPrefixAction" text="Commit Prefixes" /> |
| 37 | + <Button fx:id="canPrefixBtn" maxWidth="Infinity" onMouseClicked="#cancelPrefixAction" text="Cancel Prefixes" /> |
| 38 | + </ToolBar> |
| 39 | + </GridPane> |
| 40 | + </center> |
| 41 | + <bottom> |
| 42 | + <ToolBar> |
| 43 | + <Text text="[A]-Add new Prefix [S]-Save Prefixes [L]-Load prefixes [Enter]-Commit [C]-Cancel"/> |
28 | 44 | </ToolBar> |
29 | | - </GridPane> |
30 | | -</AnchorPane> |
| 45 | + </bottom> |
| 46 | +</BorderPane> |
0 commit comments