File tree 2 files changed +17
-7
lines changed
javafx-built-in-layout-pane-examples/src/javafx/example
2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 5
5
<?import javafx .scene.control.Button?>
6
6
<?import javafx .scene.layout.HBox?>
7
7
<GridPane xmlns : fx =" http://javafx.com/fxml" alignment =" CENTER" hgap =" 20" vgap =" 10" >
8
- <Label GridPane.rowIndex=" 0" GridPane.columnIndex=" 0" >Username: </Label >
9
- <TextField prefWidth =" 200" GridPane.rowIndex=" 0" GridPane.columnIndex=" 1" ></TextField >
8
+ <Label GridPane.rowIndex=" 0" GridPane.columnIndex=" 0" >
9
+ Username:
10
+ </Label >
11
+ <TextField prefWidth =" 200" GridPane.rowIndex=" 0"
12
+ GridPane.columnIndex=" 1" >
13
+ </TextField >
10
14
11
- <Label GridPane.rowIndex=" 1" GridPane.columnIndex=" 0" >Password: </Label >
12
- <PasswordField prefWidth =" 200" GridPane.rowIndex=" 1" GridPane.columnIndex=" 1" ></PasswordField >
15
+ <Label GridPane.rowIndex=" 1" GridPane.columnIndex=" 0" >
16
+ Password:
17
+ </Label >
13
18
14
- <HBox alignment =" BOTTOM_RIGHT" GridPane.rowIndex=" 2" GridPane.columnIndex=" 0" GridPane.columnSpan=" 2" >
19
+ <PasswordField prefWidth =" 200" GridPane.rowIndex=" 1"
20
+ GridPane.columnIndex=" 1" >
21
+ </PasswordField >
22
+
23
+ <HBox alignment =" BOTTOM_RIGHT" GridPane.rowIndex=" 2"
24
+ GridPane.columnIndex=" 0" GridPane.columnSpan=" 2" >
15
25
<children >
16
- <Button prefWidth =" 100" defaultButton =" true" text =" Login" alignment =" CENTER" ></Button >
26
+ <Button prefWidth =" 100" defaultButton =" true"
27
+ text =" Login" alignment =" CENTER" ></Button >
17
28
</children >
18
29
</HBox >
19
30
</GridPane >
Original file line number Diff line number Diff line change 18
18
<Button >
19
19
HBox Item 4
20
20
</Button >
21
-
22
21
</HBox >
You can’t perform that action at this time.
0 commit comments