-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.fxml
25 lines (22 loc) · 1.3 KB
/
sample.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
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.text.Text?>
<AnchorPane fx:controller="sample.Controller" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="406.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1">
<children>
<ImageView fitHeight="400.0" fitWidth="420.0" layoutX="1.0" layoutY="1.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@chaman.png" />
</image>
</ImageView>
<TextField fx:id="username" layoutX="158.0" layoutY="136.0" />
<TextField fx:id="password" layoutX="158.0" layoutY="176.0" />
<Text layoutX="99.0" layoutY="153.0" strokeType="OUTSIDE" strokeWidth="0.0" text="username" />
<Text layoutX="99.0" layoutY="193.0" strokeType="OUTSIDE" strokeWidth="0.0" text="password" />
<Button layoutX="147.0" layoutY="247.0" mnemonicParsing="false" onAction="#onlogin" text="Login" />
<Button layoutX="203.0" layoutY="247.0" mnemonicParsing="false" onAction="#onlogup" text="logup" />
</children>
</AnchorPane>