54 lines
4.6 KiB
Plaintext
54 lines
4.6 KiB
Plaintext
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
|
||
|
<?import javafx.geometry.*?>
|
||
|
<?import javafx.scene.text.*?>
|
||
|
<?import javafx.scene.control.*?>
|
||
|
<?import java.lang.*?>
|
||
|
<?import javafx.scene.layout.*?>
|
||
|
|
||
|
<GridPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="330.0" prefWidth="221.0" scaleShape="false" style="-fx-background-color: lightblue; -fx-vgap: 3; -fx-hgap: 3;" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="taschenrechnerkomma.FXMLDocumentController">
|
||
|
<columnConstraints>
|
||
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
||
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
||
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
||
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
||
|
<ColumnConstraints />
|
||
|
</columnConstraints>
|
||
|
<rowConstraints>
|
||
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||
|
</rowConstraints>
|
||
|
<children>
|
||
|
<Button fx:id="eins" mnemonicParsing="false" onAction="#handleEins" prefHeight="50.0" prefWidth="50.0" text="1" GridPane.rowIndex="3" />
|
||
|
<Button fx:id="zwei" mnemonicParsing="false" onAction="#handleZwei" prefHeight="50.0" prefWidth="50.0" text="2" GridPane.columnIndex="1" GridPane.rowIndex="3" />
|
||
|
<Button fx:id="drei" mnemonicParsing="false" onAction="#handleDrei" prefHeight="50.0" prefWidth="50.0" text="3" GridPane.columnIndex="2" GridPane.rowIndex="3" />
|
||
|
<Button fx:id="vier" mnemonicParsing="false" onAction="#handleVier" prefHeight="50.0" prefWidth="50.0" text="4" GridPane.rowIndex="2" />
|
||
|
<Button fx:id="fuenf" mnemonicParsing="false" onAction="#handleFuenf" prefHeight="50.0" prefWidth="50.0" text="5" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
||
|
<Button fx:id="sechs" mnemonicParsing="false" onAction="#handlesSechs" prefHeight="50.0" prefWidth="50.0" text="6" GridPane.columnIndex="2" GridPane.rowIndex="2" />
|
||
|
<Button fx:id="sieben" mnemonicParsing="false" onAction="#handleSieben" prefHeight="50.0" prefWidth="50.0" text="7" GridPane.rowIndex="1" />
|
||
|
<Button fx:id="acht" mnemonicParsing="false" onAction="#handleAcht" prefHeight="50.0" prefWidth="50.0" text="8" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
||
|
<Button fx:id="neun" mnemonicParsing="false" onAction="#handleNeun" prefHeight="50.0" prefWidth="50.0" text="9" GridPane.columnIndex="2" GridPane.rowIndex="1" />
|
||
|
<Button fx:id="zero" mnemonicParsing="false" onAction="#handleZero" prefHeight="50.0" prefWidth="50.0" text="0" GridPane.rowIndex="4" />
|
||
|
<Button fx:id="plus" mnemonicParsing="false" onAction="#handlePlus" prefHeight="50.0" prefWidth="50.0" text="+" GridPane.columnIndex="3" GridPane.rowIndex="3" />
|
||
|
<Button fx:id="minus" mnemonicParsing="false" onAction="#handleMinus" prefHeight="50.0" prefWidth="50.0" text="-" GridPane.columnIndex="3" GridPane.rowIndex="2" />
|
||
|
<Button fx:id="gleich" mnemonicParsing="false" onAction="#handleGleich" prefHeight="50.0" prefWidth="50.0" text="=" GridPane.columnIndex="3" GridPane.rowIndex="4" />
|
||
|
<Button fx:id="mal" mnemonicParsing="false" onAction="#handleMal" prefHeight="50.0" prefWidth="50.0" text="*" GridPane.columnIndex="2" GridPane.rowIndex="4" />
|
||
|
<Button fx:id="geteilt" mnemonicParsing="false" onAction="#handleGeteilt" prefHeight="50.0" prefWidth="50.0" text="/" GridPane.columnIndex="1" GridPane.rowIndex="4" />
|
||
|
<Button fx:id="clear" mnemonicParsing="false" onAction="#handleClear" prefHeight="50.0" prefWidth="50.0" text="C" GridPane.columnIndex="3" GridPane.rowIndex="1" />
|
||
|
<Label fx:id="display" prefHeight="104.0" prefWidth="291.0" style="-fx-background-color: lightblue;" GridPane.columnSpan="5">
|
||
|
<font>
|
||
|
<Font size="27.0" />
|
||
|
</font>
|
||
|
</Label>
|
||
|
<Button fx:id="komma" mnemonicParsing="false" onAction="#handleKomma" prefHeight="50.0" prefWidth="50.0" text="," GridPane.columnIndex="2" GridPane.rowIndex="5" />
|
||
|
<Button fx:id="vorzeichen" mnemonicParsing="false" onAction="#handleVorzeichen" prefHeight="50.0" prefWidth="50.0" text="+/-" GridPane.columnIndex="1" GridPane.rowIndex="5" />
|
||
|
</children>
|
||
|
<padding>
|
||
|
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
||
|
</padding>
|
||
|
</GridPane>
|