parent
40769bddae
commit
4cacbb0d2c
@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.TextArea?>
|
||||
<?import javafx.scene.layout.AnchorPane?>
|
||||
<?import javafx.scene.text.Text?>
|
||||
|
||||
<AnchorPane prefHeight="501.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="CalculatorControl">
|
||||
<children>
|
||||
<Text layoutX="14.0" layoutY="30.0" strokeType="OUTSIDE" strokeWidth="0.0" text="计算器" />
|
||||
<Button layoutX="300.0" layoutY="420.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="=" onAction="#onEqualsButtonClicked" />
|
||||
<Button layoutX="400.0" layoutY="420.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="+" onAction="#onOperationButtonClicked" />
|
||||
<Button layoutX="200.0" layoutY="420.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="." onAction="#onNumberButtonClicked" />
|
||||
<Button layoutX="100.0" layoutY="420.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="0" onAction="#onNumberButtonClicked" />
|
||||
<Button layoutX="100.0" layoutY="350.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="1" onAction="#onNumberButtonClicked" />
|
||||
<Button layoutX="100.0" layoutY="280.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="4" onAction="#onNumberButtonClicked" />
|
||||
<Button layoutX="100.0" layoutY="210.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="7" onAction="#onNumberButtonClicked" />
|
||||
<Button layoutX="200.0" layoutY="350.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="2" onAction="#onNumberButtonClicked" />
|
||||
<Button layoutX="200.0" layoutY="280.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="5" onAction="#onNumberButtonClicked" />
|
||||
<Button layoutX="200.0" layoutY="210.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="8" onAction="#onNumberButtonClicked" />
|
||||
<Button layoutX="300.0" layoutY="350.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="3" onAction="#onNumberButtonClicked" />
|
||||
<Button layoutX="300.0" layoutY="280.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="6" onAction="#onNumberButtonClicked" />
|
||||
<Button layoutX="400.0" layoutY="210.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="/" onAction="#onOperationButtonClicked" />
|
||||
<Button layoutX="400.0" layoutY="350.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="-" onAction="#onOperationButtonClicked" />
|
||||
<Button layoutX="400.0" layoutY="280.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="*" onAction="#onOperationButtonClicked" />
|
||||
<Button layoutX="100.0" layoutY="140.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="\%" onAction="#onOperationButtonClicked" />
|
||||
<Button layoutX="300.0" layoutY="210.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="9" onAction="#onNumberButtonClicked" />
|
||||
<Button layoutX="300.0" layoutY="140.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="C" onAction="#onClearButtonClicked" />
|
||||
<Button layoutX="200.0" layoutY="140.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="CE" onAction="#onClearEntryButtonClicked" />
|
||||
<Button layoutX="400.0" layoutY="140.0" mnemonicParsing="false" prefHeight="50.0" prefWidth="50.0" text="D" onAction="#onDeleteButtonClicked" />
|
||||
<TextArea fx:id="display" layoutX="97.0" layoutY="33.0" prefHeight="81.0" prefWidth="363.0" />
|
||||
</children>
|
||||
</AnchorPane>
|
Loading…
Reference in new issue