Created
May 21, 2017 02:37
-
-
Save zorro2b/a3db62dd5d382be767a70a8142a0fb16 to your computer and use it in GitHub Desktop.
BorderPane Layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="1000.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="javafxapplication1.SimpleUIController"> | |
<stylesheets> | |
<URL value="@/styles/demo.css" /> | |
</stylesheets> | |
<top> | |
<MenuBar fx:id="menuBar" BorderPane.alignment="CENTER"> | |
<menus> | |
<Menu mnemonicParsing="false" text="File"> | |
<items> | |
<MenuItem mnemonicParsing="false" text="Preferences..." /> | |
<MenuItem mnemonicParsing="false" text="Quit" /> | |
</items> | |
</Menu> | |
</menus> | |
</MenuBar> | |
</top> | |
<center> | |
<AnchorPane> | |
<TableView fx:id="table" prefHeight="500.0" prefWidth="1000.0" AnchorPane.bottomAnchor="10.0" AnchorPane.leftAnchor="10.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="10.0" BorderPane.alignment="CENTER"> | |
<columns> | |
<TableColumn fx:id="colName" prefWidth="500.0" text="Name" /> | |
<TableColumn fx:id="colPrice" prefWidth="400.0" text="Price" /> | |
</columns> | |
</TableView> | |
</AnchorPane> | |
</center> | |
<bottom> | |
<BorderPane prefHeight="40.0" prefWidth="200.0" styleClass="status-bar" BorderPane.alignment="CENTER"> | |
<right> | |
<ImageView fx:id="statusLogo" fitHeight="40.0" fitWidth="200.0" pickOnBounds="true" preserveRatio="true" BorderPane.alignment="CENTER" /> | |
</right> | |
</BorderPane> | |
</bottom> | |
</BorderPane> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment