-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview.fxml
118 lines (115 loc) · 4.61 KB
/
view.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
112
113
114
115
116
117
118
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.FlowPane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0"
prefWidth="300.0" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1"
fx:controller="com.project.demo3.Controller">
<TextField fx:id="textField" editable="false" layoutX="25.0" layoutY="15.0" nodeOrientation="RIGHT_TO_LEFT"
prefHeight="75.0" prefWidth="250.0" text="0">
<font>
<Font size="40.0"/>
</font>
</TextField>
<FlowPane layoutX="25.0" layoutY="125.0" prefHeight="180.0" prefWidth="180.0">
<Button mnemonicParsing="false" onAction="#button1Clicked" prefHeight="60.0" prefWidth="60.0" text="1">
<font>
<Font size="25.0"/>
</font>
</Button>
<Button layoutX="10.0" layoutY="10.0" mnemonicParsing="false" onAction="#button2Clicked" prefHeight="60.0"
prefWidth="60.0" text="2">
<font>
<Font size="25.0"/>
</font>
</Button>
<Button layoutX="70.0" layoutY="10.0" mnemonicParsing="false" onAction="#button3Clicked" prefHeight="60.0"
prefWidth="60.0" text="3">
<font>
<Font size="25.0"/>
</font>
</Button>
<Button layoutX="130.0" layoutY="10.0" mnemonicParsing="false" onAction="#button4Clicked" prefHeight="60.0"
prefWidth="60.0" text="4">
<font>
<Font size="25.0"/>
</font>
</Button>
<Button layoutX="10.0" layoutY="70.0" mnemonicParsing="false" onAction="#button5Clicked" prefHeight="60.0"
prefWidth="60.0" text="5">
<font>
<Font size="25.0"/>
</font>
</Button>
<Button layoutX="70.0" layoutY="70.0" mnemonicParsing="false" onAction="#button6Clicked" prefHeight="60.0"
prefWidth="60.0" text="6">
<font>
<Font size="25.0"/>
</font>
</Button>
<Button layoutX="130.0" layoutY="70.0" mnemonicParsing="false" onAction="#button7Clicked" prefHeight="60.0"
prefWidth="60.0" text="7">
<font>
<Font size="25.0"/>
</font>
</Button>
<Button layoutX="10.0" layoutY="130.0" mnemonicParsing="false" onAction="#button8Clicked" prefHeight="60.0"
prefWidth="60.0" text="8">
<font>
<Font size="25.0"/>
</font>
</Button>
<Button layoutX="70.0" layoutY="130.0" mnemonicParsing="false" onAction="#button9Clicked" prefHeight="60.0"
prefWidth="60.0" text="9">
<font>
<Font size="25.0"/>
</font>
</Button>
<Button layoutX="70.0" layoutY="10.0" mnemonicParsing="false" onAction="#button0Clicked" prefHeight="60.0"
prefWidth="60.0" text="0">
<font>
<Font size="25.0"/>
</font>
</Button>
<Button mnemonicParsing="false" onAction="#calculate" prefHeight="60.0" prefWidth="60.0" text="=">
<font>
<Font size="25.0"/>
</font>
</Button>
<Button mnemonicParsing="false" onAction="#clearTextField" prefHeight="60.0" prefWidth="60.0" text="C">
<font>
<Font size="25.0"/>
</font>
</Button>
</FlowPane>
<VBox layoutX="215.0" layoutY="125.0" prefHeight="240.0" prefWidth="60.0">
<Button mnemonicParsing="false" onAction="#addAction" prefHeight="60.0" prefWidth="60.0" text="+">
<font>
<Font size="25.0"/>
</font>
</Button>
<Button layoutX="10.0" layoutY="70.0" mnemonicParsing="false" onAction="#minusAction" prefHeight="60.0"
prefWidth="60.0" text="-">
<font>
<Font size="25.0"/>
</font>
</Button>
<Button layoutX="10.0" layoutY="130.0" mnemonicParsing="false" onAction="#divideAction" prefHeight="60.0"
prefWidth="60.0" text="/">
<font>
<Font size="25.0"/>
</font>
</Button>
<Button layoutX="10.0" layoutY="172.0" mnemonicParsing="false" onAction="#multiplicationAction"
prefHeight="60.0" prefWidth="60.0" text="*">
<font>
<Font size="25.0"/>
</font>
</Button>
</VBox>
<Text fx:id="savedNumbers" layoutX="30.0" layoutY="30.0" strokeType="OUTSIDE" strokeWidth="0.0"/>
</AnchorPane>