|
| 1 | +<?import javafx.geometry.Insets?> |
| 2 | + |
| 3 | +<?import javafx.scene.control.Button?> |
| 4 | +<?import javafx.scene.layout.HBox?> |
| 5 | + |
| 6 | +<?import javafx.scene.layout.BorderPane?> |
| 7 | +<?import javafx.scene.control.Label?> |
| 8 | +<BorderPane fx:controller="sample.Controller" |
| 9 | + xmlns:fx="http://javafx.com/fxml" > |
| 10 | + <top> |
| 11 | + <Label text="This label is in the top position" alignment="center" |
| 12 | + BorderPane.alignment="center" |
| 13 | + style="-fx-border-color: blue; -fx-border-width: 3; -fx-border-style: dashed"/> |
| 14 | + </top> |
| 15 | + <bottom> |
| 16 | + <HBox spacing="10" alignment="bottom_right"> |
| 17 | + <padding> |
| 18 | + <Insets bottom="10" right="10"/> |
| 19 | + </padding> |
| 20 | + <Button text="Okay" prefWidth="90"/> |
| 21 | + <Button text="Cancel" prefWidth="90"/> |
| 22 | + <Button text="Help" prefWidth="90"/> |
| 23 | + </HBox> |
| 24 | + </bottom> |
| 25 | +</BorderPane> |
0 commit comments