1 | 1 | | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | | |
3 | | - | <?import javafx.geometry.*?> |
4 | | - | <?import javafx.scene.control.*?> |
5 | | - | <?import javafx.scene.layout.*?> |
6 | | - | <BorderPane xmlns:fx="http://javafx.com/fxml/1" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" |
7 | | - | prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.102-ea" |
8 | | - | fx:controller="cs2340.cleanwater.controller.LoginController"> |
| 3 | + | <?import javafx.geometry.Insets?> |
| 4 | + | <?import javafx.scene.control.Button?> |
| 5 | + | <?import javafx.scene.control.Label?> |
| 6 | + | <?import javafx.scene.control.Menu?> |
| 7 | + | <?import javafx.scene.control.MenuBar?> |
| 8 | + | <?import javafx.scene.control.MenuItem?> |
| 9 | + | <?import javafx.scene.control.PasswordField?> |
| 10 | + | <?import javafx.scene.control.TextField?> |
| 11 | + | <?import javafx.scene.layout.BorderPane?> |
| 12 | + | <?import javafx.scene.layout.ColumnConstraints?> |
| 13 | + | <?import javafx.scene.layout.GridPane?> |
| 14 | + | <?import javafx.scene.layout.RowConstraints?> |
| 15 | + | <?import javafx.scene.layout.VBox?> |
| 16 | + | |
| 17 | + | <BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.112-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="cs2340.cleanwater.controller.LoginController"> |
9 | 18 | | <center> |
10 | 19 | | <VBox prefHeight="200.0" prefWidth="100.0" BorderPane.alignment="CENTER"> |
11 | 20 | | <children> |
12 | 21 | | <GridPane> |
13 | 22 | | <columnConstraints> |
14 | | - | <ColumnConstraints hgrow="SOMETIMES" maxWidth="292.0" minWidth="10.0" prefWidth="132.0"/> |
15 | | - | <ColumnConstraints hgrow="SOMETIMES" maxWidth="468.0" minWidth="10.0" prefWidth="468.0"/> |
| 23 | + | <ColumnConstraints hgrow="SOMETIMES" maxWidth="292.0" minWidth="10.0" prefWidth="132.0" /> |
| 24 | + | <ColumnConstraints hgrow="SOMETIMES" maxWidth="468.0" minWidth="10.0" prefWidth="468.0" /> |
16 | 25 | | </columnConstraints> |
17 | 26 | | <rowConstraints> |
18 | | - | <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/> |
19 | | - | <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/> |
| 27 | + | <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 28 | + | <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
20 | 29 | | </rowConstraints> |
21 | 30 | | <children> |
22 | | - | <Label text="User Name:" GridPane.halignment="RIGHT"/> |
| 31 | + | <Label text="User Name:" GridPane.halignment="RIGHT" /> |
23 | 32 | | <Label text="Password:" GridPane.halignment="RIGHT" GridPane.rowIndex="1"> |
24 | 33 | | <opaqueInsets> |
25 | | - | <Insets/> |
| 34 | + | <Insets /> |
26 | 35 | | </opaqueInsets> |
27 | 36 | | </Label> |
28 | 37 | | <TextField fx:id="usernameField" GridPane.columnIndex="1"> |
29 | 38 | | <GridPane.margin> |
30 | | - | <Insets left="10.0"/> |
| 39 | + | <Insets left="10.0" /> |
31 | 40 | | </GridPane.margin> |
32 | 41 | | <opaqueInsets> |
33 | | - | <Insets/> |
| 42 | + | <Insets /> |
34 | 43 | | </opaqueInsets> |
35 | 44 | | </TextField> |
36 | 45 | | <PasswordField fx:id="passwordField" GridPane.columnIndex="1" GridPane.rowIndex="1"> |
37 | 46 | | <GridPane.margin> |
38 | | - | <Insets left="10.0"/> |
| 47 | + | <Insets left="10.0" /> |
39 | 48 | | </GridPane.margin> |
40 | 49 | | <opaqueInsets> |
41 | | - | <Insets/> |
| 50 | + | <Insets /> |
42 | 51 | | </opaqueInsets> |
43 | 52 | | </PasswordField> |
44 | 53 | | </children> |
45 | 54 | | <padding> |
46 | | - | <Insets left="30.0" right="30.0"/> |
| 55 | + | <Insets left="30.0" right="30.0" /> |
47 | 56 | | </padding> |
48 | 57 | | </GridPane> |
49 | 58 | | <GridPane> |
50 | 59 | | <columnConstraints> |
51 | | - | <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0"/> |
52 | | - | <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0"/> |
| 60 | + | <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> |
| 61 | + | <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> |
53 | 62 | | </columnConstraints> |
54 | 63 | | <rowConstraints> |
55 | | - | <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/> |
| 64 | + | <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
56 | 65 | | </rowConstraints> |
57 | 66 | | <children> |
58 | | - | <Button mnemonicParsing="false" onAction="#handleLoginPressed" text="Login" |
59 | | - | GridPane.halignment="RIGHT"> |
| 67 | + | <Button mnemonicParsing="false" onAction="#handleLoginPressed" text="Login" GridPane.halignment="RIGHT"> |
60 | 68 | | <GridPane.margin> |
61 | | - | <Insets right="10.0"/> |
| 69 | + | <Insets right="10.0" /> |
62 | 70 | | </GridPane.margin> |
63 | 71 | | </Button> |
64 | | - | <Button mnemonicParsing="false" onAction="#handleRegisterPressed" text="Register" |
65 | | - | GridPane.columnIndex="1" GridPane.halignment="LEFT"> |
| 72 | + | <Button mnemonicParsing="false" onAction="#handleRegisterPressed" text="Register" GridPane.columnIndex="1" GridPane.halignment="LEFT"> |
66 | 73 | | <GridPane.margin> |
67 | | - | <Insets left="10.0"/> |
| 74 | + | <Insets left="10.0" /> |
68 | 75 | | </GridPane.margin> |
69 | 76 | | </Button> |
70 | 77 | | </children> |
71 | 78 | | <padding> |
72 | | - | <Insets top="20.0"/> |
| 79 | + | <Insets top="20.0" /> |
73 | 80 | | </padding> |
74 | 81 | | </GridPane> |
75 | 82 | | </children> |
76 | 83 | | <padding> |
77 | | - | <Insets top="150.0"/> |
| 84 | + | <Insets top="150.0" /> |
78 | 85 | | </padding> |
79 | 86 | | </VBox> |
80 | 87 | | </center> |
| 88 | + | <top> |
| 89 | + | <MenuBar BorderPane.alignment="CENTER"> |
| 90 | + | <menus> |
| 91 | + | <Menu mnemonicParsing="false" text="File"> |
| 92 | + | <items> |
| 93 | + | <MenuItem mnemonicParsing="false" onAction="#openPressed" text="Open..." /> |
| 94 | + | <MenuItem mnemonicParsing="false" onAction="#savePressed" text="Save..." /> |
| 95 | + | </items> |
| 96 | + | </Menu> |
| 97 | + | </menus> |
| 98 | + | </MenuBar> |
| 99 | + | </top> |
81 | 100 | | </BorderPane> |
82 | 101 | | |