|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
|
3 | | -<?import java.lang.*?> |
4 | | -<?import java.util.*?> |
5 | | -<?import javafx.scene.control.*?> |
6 | | -<?import javafx.scene.image.*?> |
7 | | -<?import javafx.scene.layout.*?> |
8 | | -<?import javafx.scene.paint.*?> |
9 | | -<?import javafx.scene.text.*?> |
10 | | -<?import javafx.collections.FXCollections ?> |
| 3 | +<?import javafx.scene.control.Button?> |
| 4 | +<?import javafx.scene.control.Hyperlink?> |
| 5 | +<?import javafx.scene.control.Label?> |
| 6 | +<?import javafx.scene.control.PasswordField?> |
| 7 | +<?import javafx.scene.control.TextField?> |
| 8 | +<?import javafx.scene.image.Image?> |
| 9 | +<?import javafx.scene.image.ImageView?> |
| 10 | +<?import javafx.scene.layout.AnchorPane?> |
| 11 | +<?import javafx.scene.layout.ColumnConstraints?> |
| 12 | +<?import javafx.scene.layout.GridPane?> |
| 13 | +<?import javafx.scene.layout.RowConstraints?> |
| 14 | +<?import javafx.scene.paint.Color?> |
| 15 | +<?import javafx.scene.text.Font?> |
11 | 16 |
|
12 | | -<AnchorPane id="AnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" |
13 | | - minWidth="-Infinity" prefHeight="235.0" prefWidth="482.0" style="-fx-background-color: lightblue" |
14 | | - xmlns:fx="http://javafx.com/fxml" |
15 | | - fx:controller="steveonjava.client.LoginController"> |
| 17 | +<AnchorPane id="AnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="235.0" prefWidth="482.0" style="-fx-background-color: lightblue" xmlns="http://javafx.com/javafx/8.0.121" xmlns:fx="http://javafx.com/fxml/1" fx:controller="steveonjava.client.LoginController"> |
16 | 18 | <children> |
17 | 19 | <GridPane id="GridPane" layoutX="48.0" layoutY="115.0"> |
18 | 20 | <children> |
|
25 | 27 | <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" /> |
26 | 28 | <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" /> |
27 | 29 | </columnConstraints> |
| 30 | + <rowConstraints> |
| 31 | + <RowConstraints /> |
| 32 | + <RowConstraints /> |
| 33 | + </rowConstraints> |
28 | 34 | <!-- |
29 | 35 | <hgap> |
30 | 36 | <Long fx:value="10" /> |
|
43 | 49 | </font> |
44 | 50 | </Label> |
45 | 51 | <Label fx:id="header" layoutX="48.0" layoutY="82.0" text="Please login with your credentials:" textFill="GREY" /> |
46 | | - <ImageView fitHeight="111.25471620029381" fitWidth="106.24324035644531" layoutX="343.0" layoutY="83.0" pickOnBounds="true" preserveRatio="true"> |
| 52 | + <ImageView fitHeight="111.25471620029381" fitWidth="106.24324035644531" layoutX="344.0" layoutY="74.0" pickOnBounds="true" preserveRatio="true"> |
47 | 53 | <image> |
48 | | - <Image url="@logo.png" preserveRatio="false" smooth="false" /> |
| 54 | + <Image preserveRatio="false" smooth="false" url="@logo.png" /> |
49 | 55 | </image> |
50 | 56 | </ImageView> |
51 | | - <Button defaultButton="true" layoutX="264.0" layoutY="187.0" mnemonicParsing="false" onAction="#login" text="Login" /> |
52 | | - <Hyperlink layoutX="119.0" layoutY="187.0" onAction="#employee" text="Employee"> |
| 57 | + <Button defaultButton="true" layoutX="241.0" layoutY="186.0" mnemonicParsing="false" onAction="#login" text="Login" /> |
| 58 | + <Button defaultButton="true" layoutX="302.0" layoutY="186.0" mnemonicParsing="false" onAction="#register" text="Register" /> |
| 59 | + <Hyperlink layoutX="101.0" layoutY="187.0" onAction="#employee" text="Employee"> |
53 | 60 | <font> |
54 | 61 | <Font size="12.0" fx:id="x1" /> |
55 | 62 | </font> |
56 | 63 | <textFill> |
57 | 64 | <Color blue="0.800" green="0.512" red="0.000" fx:id="x2" /> |
58 | 65 | </textFill> |
59 | 66 | </Hyperlink> |
60 | | - <Hyperlink font="$x1" layoutX="188.0" layoutY="187.0" onAction="#manager" text="Manager" textFill="$x2" /> |
| 67 | + <Hyperlink font="$x1" layoutX="175.0" layoutY="187.0" onAction="#manager" text="Manager" textFill="$x2" /> |
61 | 68 | </children> |
62 | 69 | </AnchorPane> |
0 commit comments