-
Notifications
You must be signed in to change notification settings - Fork 0
/
Login.fxml
33 lines (30 loc) · 1.36 KB
/
Login.fxml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.PasswordField?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<AnchorPane prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/15.0.1" xmlns:fx="http://javafx.com/fxml/1" >
<children>
<VBox alignment="CENTER" layoutX="129.0" prefHeight="400.0" prefWidth="343.0" spacing="14.0">
<children>
<Label text="Login">
<font>
<Font size="24.0" />
</font>
</Label>
<Label fx:id="errorLabel" textFill="RED">
<font>
<Font size="18.0" />
</font>
</Label>
<TextField fx:id="usernameTextField" promptText="Username" />
<PasswordField fx:id="passwordTextField" promptText="Password" />
<Label fx:id="registerButton" alignment="CENTER_RIGHT" onMouseClicked="#goToRegister" prefHeight="17.0" prefWidth="350.0" text="Do not have an account? Register" textAlignment="RIGHT" />
<Button fx:id="loginButton" mnemonicParsing="false" onMouseClicked="#login" text="Login" />
</children>
</VBox>
</children>
</AnchorPane>