-
Notifications
You must be signed in to change notification settings - Fork 0
/
hjwdesign.fxml
111 lines (109 loc) · 5.1 KB
/
hjwdesign.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.StackPane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.shape.Rectangle?>
<?import javafx.scene.text.Text?>
<VBox fx:controller="application.Controller" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="350.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1">
<children>
<StackPane prefHeight="107.0" prefWidth="441.0">
<children>
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="#191b1c0c" height="80.0" stroke="BLACK" strokeType="INSIDE" width="285.0" StackPane.alignment="CENTER" />
<Text fx:id="result" strokeType="OUTSIDE" strokeWidth="0.0" text="" />
</children>
</StackPane>
<HBox alignment="TOP_CENTER" prefHeight="70.0" prefWidth="200.0">
<children>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="60.0" prefWidth="60.0" text="7" onAction="#operand">
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
</Button>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="60.0" prefWidth="60.0" text="8" onAction="#operand">
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
</Button>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="60.0" prefWidth="60.0" text="9" onAction="#operand">
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
</Button>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="60.0" prefWidth="60.0" text="/" onAction="#operator">
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
</Button>
</children>
</HBox>
<HBox alignment="TOP_CENTER" prefHeight="70.0" prefWidth="200.0">
<children>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="60.0" prefWidth="60.0" text="4" onAction="#operand">
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
</Button>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="60.0" prefWidth="60.0" text="5" onAction="#operand">
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
</Button>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="60.0" prefWidth="60.0" text="6" onAction="#operand">
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
</Button>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="60.0" prefWidth="60.0" text="*" onAction="#operator">
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
</Button>
</children>
</HBox>
<HBox alignment="TOP_CENTER" prefHeight="70.0" prefWidth="200.0">
<children>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="60.0" prefWidth="60.0" text="1" onAction="#operand">
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
</Button>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="60.0" prefWidth="60.0" text="2" onAction="#operand">
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
</Button>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="60.0" prefWidth="60.0" text="3" onAction="#operand">
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
</Button>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="60.0" prefWidth="60.0" text="-" onAction="#operator">
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
</Button>
</children>
</HBox>
<HBox alignment="TOP_CENTER" prefHeight="70.0" prefWidth="200.0">
<children>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="60.0" prefWidth="132.0" text="0" onAction="#operand">
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
</Button>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="60.0" prefWidth="60.0" text="=" onAction="#operator">
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
</Button>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="60.0" prefWidth="60.0" text="+" onAction="#operator">
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
</Button>
</children>
</HBox>
</children>
</VBox>