Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <?import javafx.scene.control.Button?>
- <?import javafx.scene.control.Label?>
- <?import javafx.scene.layout.AnchorPane?>
- <?import javafx.scene.layout.ColumnConstraints?>
- <?import javafx.scene.layout.GridPane?>
- <?import javafx.scene.layout.RowConstraints?>
- <?import javafx.scene.layout.VBox?>
- <?import javafx.scene.text.Font?>
- <VBox minHeight="-Infinity" minWidth="-Infinity" prefHeight="329.0" prefWidth="250.0"
- xmlns="http://javafx.com/javafx/8.0.121" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sample.Controller">
- <children>
- <AnchorPane prefHeight="361.0" prefWidth="250.0">
- <children>
- <GridPane alignment="TOP_CENTER" hgap="5" layoutX="18" layoutY="110" prefHeight="200.0"
- prefWidth="200.0" vgap="5">
- <columnConstraints>
- <ColumnConstraints hgrow="SOMETIMES" maxWidth="50.0" minWidth="50.0" prefWidth="70"/>
- <ColumnConstraints hgrow="SOMETIMES" maxWidth="50.0" minWidth="50.0" prefWidth="60"/>
- <ColumnConstraints hgrow="SOMETIMES" maxWidth="50.0" minWidth="50.0" prefWidth="100"/>
- <ColumnConstraints hgrow="SOMETIMES" maxWidth="50.0" minWidth="50.0" prefWidth="100"/>
- </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>
- <children>
- <Button mnemonicParsing="false" onAction="#button_number_click" prefHeight="48" prefWidth="50"
- text="7">
- <font>
- <Font name="System Bold Italic" size="22"/>
- </font>
- </Button>
- <Button mnemonicParsing="false" prefHeight="48" prefWidth="50" text="8"
- onAction="#button_number_click" GridPane.columnIndex="1">
- <font>
- <Font name="System Bold Italic" size="22"/>
- </font>
- </Button>
- <Button mnemonicParsing="false" prefHeight="48" prefWidth="50" text="9"
- onAction="#button_number_click" GridPane.columnIndex="2">
- <font>
- <Font name="System Bold Italic" size="22"/>
- </font>
- </Button>
- <Button mnemonicParsing="false" prefHeight="48" prefWidth="50" text="/"
- onAction="#button_div_click"
- GridPane.columnIndex="3">
- <font>
- <Font name="System Bold Italic" size="22"/>
- </font>
- </Button>
- <Button mnemonicParsing="false" prefHeight="48" prefWidth="50" text="4"
- onAction="#button_number_click" GridPane.rowIndex="1">
- <font>
- <Font name="System Bold Italic" size="22"/>
- </font>
- </Button>
- <Button mnemonicParsing="false" prefHeight="48" prefWidth="50" text="5"
- onAction="#button_number_click" GridPane.columnIndex="1" GridPane.rowIndex="1">
- <font>
- <Font name="System Bold Italic" size="22"/>
- </font>
- </Button>
- <Button mnemonicParsing="false" prefHeight="48" prefWidth="50" text="6" onAction="#button_number_click" GridPane.columnIndex="2"
- GridPane.rowIndex="1">
- <font>
- <Font name="System Bold Italic" size="22"/>
- </font>
- </Button>
- <Button mnemonicParsing="false" prefHeight="48" prefWidth="50" text="*" onAction="#button_mul_click" GridPane.columnIndex="3"
- GridPane.rowIndex="1">
- <font>
- <Font name="System Bold Italic" size="22"/>
- </font>
- </Button>
- <Button mnemonicParsing="false" prefHeight="48" prefWidth="50" text="1" onAction="#button_number_click" GridPane.rowIndex="2">
- <font>
- <Font name="System Bold Italic" size="22"/>
- </font>
- </Button>
- <Button mnemonicParsing="false" prefHeight="48" prefWidth="50" text="2" onAction="#button_number_click" GridPane.columnIndex="1"
- GridPane.rowIndex="2">
- <font>
- <Font name="System Bold Italic" size="22"/>
- </font>
- </Button>
- <Button mnemonicParsing="false" prefHeight="48" prefWidth="50" text="3" onAction="#button_number_click" GridPane.columnIndex="2"
- GridPane.rowIndex="2">
- <font>
- <Font name="System Bold Italic" size="22"/>
- </font>
- </Button>
- <Button mnemonicParsing="false" prefHeight="48" prefWidth="50" text="-" onAction="#button_min_click" GridPane.columnIndex="3"
- GridPane.rowIndex="2">
- <font>
- <Font name="System Bold Italic" size="22"/>
- </font>
- </Button>
- <Button mnemonicParsing="false" prefHeight="48" prefWidth="50" text="." onAction="#button_number_click" GridPane.rowIndex="3">
- <font>
- <Font name="System Bold Italic" size="22"/>
- </font>
- </Button>
- <Button mnemonicParsing="false" prefHeight="48" prefWidth="50" text="0" onAction="#button_number_click" GridPane.columnIndex="1"
- GridPane.rowIndex="3">
- <font>
- <Font name="System Bold Italic" size="22"/>
- </font>
- </Button>
- <Button mnemonicParsing="false" prefHeight="48" prefWidth="50" text="=" onAction="#button_rez_click" GridPane.columnIndex="2"
- GridPane.rowIndex="3">
- <font>
- <Font name="System Bold Italic" size="22"/>
- </font>
- </Button>
- <Button mnemonicParsing="false" prefHeight="48" prefWidth="50" text="+" onAction="#button_plus_click" GridPane.columnIndex="3"
- GridPane.rowIndex="3">
- <font>
- <Font name="System Bold Italic" size="22"/>
- </font>
- </Button>
- </children>
- </GridPane>
- <Button fx:id="button_clear" layoutX="171" layoutY="48" mnemonicParsing="false" prefHeight="54"
- prefWidth="62.0" text="C" onAction="#button_Clear_click">
- <font>
- <Font name="System Bold" size="25"/>
- </font>
- </Button>
- <Label fx:id="label_rez" layoutX="18" layoutY="50" prefHeight="54" prefWidth="146">
- <font>
- <Font size="22"/>
- </font>
- </Label>
- <Label fx:id="label_top" layoutX="14" layoutY="14" prefHeight="29" prefWidth="215">
- <font>
- <Font size="15"/>
- </font>
- </Label>
- </children>
- </AnchorPane>
- </children>
- </VBox>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement