Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <?import javafx.scene.image.*?>
- <?import javafx.scene.paint.*?>
- <?import javafx.scene.text.*?>
- <?import javafx.scene.control.*?>
- <?import java.lang.*?>
- <?import javafx.scene.layout.*?>
- <?import javafx.geometry.Insets?>
- <?import javafx.scene.layout.GridPane?>
- <?import javafx.scene.control.Button?>
- <?import javafx.scene.control.Label?>
- <BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="480.0" prefWidth="640.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sample.Controller">
- <center>
- <GridPane prefHeight="242.0" prefWidth="540.0" style="-fx-background-color: #000028;" BorderPane.alignment="CENTER">
- <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>
- <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>
- <children>
- <Button fx:id="seven" mnemonicParsing="false" onAction="#seven_Click" prefHeight="80.0" prefWidth="199.0" style="-fx-background-color: #000028;" text="7" textFill="WHITE">
- <font>
- <Font size="36.0" />
- </font>
- </Button>
- <Button fx:id="four" mnemonicParsing="false" onAction="#four_Click" prefHeight="77.0" prefWidth="200.0" style="-fx-background-color: #000028;" text="4" textFill="WHITE" GridPane.rowIndex="1">
- <font>
- <Font size="36.0" />
- </font>
- </Button>
- <Button fx:id="one" mnemonicParsing="false" onAction="#one_Click" prefHeight="82.0" prefWidth="200.0" style="-fx-background-color: #000028;" text="1" textFill="WHITE" GridPane.rowIndex="2">
- <font>
- <Font size="36.0" />
- </font>
- </Button>
- <Button fx:id="zero" mnemonicParsing="false" onAction="#zero_Click" prefHeight="83.0" prefWidth="200.0" style="-fx-background-color: #000028;" text="0" textFill="WHITE" GridPane.rowIndex="3">
- <font>
- <Font size="36.0" />
- </font>
- </Button>
- <Button fx:id="next" mnemonicParsing="false" onAction="#next_Click" prefHeight="118.0" prefWidth="200.0" style="-fx-background-color: #000028;" text="next" textFill="WHITE" GridPane.rowIndex="4">
- <font>
- <Font size="36.0" />
- </font>
- </Button>
- <Button fx:id="eight" mnemonicParsing="false" onAction="#eight_Click" prefHeight="142.0" prefWidth="200.0" style="-fx-background-color: #000028;" text="8" textFill="WHITE" GridPane.columnIndex="1">
- <font>
- <Font size="36.0" />
- </font>
- </Button>
- <Button fx:id="five" mnemonicParsing="false" onAction="#five_Click" prefHeight="99.0" prefWidth="200.0" style="-fx-background-color: #000028;" text="5" textFill="WHITE" GridPane.columnIndex="1" GridPane.rowIndex="1">
- <font>
- <Font size="36.0" />
- </font>
- </Button>
- <Button fx:id="two" mnemonicParsing="false" onAction="#two_Click" prefHeight="104.0" prefWidth="200.0" style="-fx-background-color: #000028;" text="2" textFill="WHITE" GridPane.columnIndex="1" GridPane.rowIndex="2">
- <font>
- <Font size="36.0" />
- </font>
- </Button>
- <Button fx:id="point" mnemonicParsing="false" onAction="#point_Click" prefHeight="96.0" prefWidth="200.0" style="-fx-background-color: #000028;" text="." textFill="WHITE" GridPane.columnIndex="1" GridPane.rowIndex="3">
- <font>
- <Font size="36.0" />
- </font>
- </Button>
- <Button fx:id="nine" mnemonicParsing="false" onAction="#nine_Click" prefHeight="102.0" prefWidth="200.0" style="-fx-background-color: #000028;" text="9" textFill="WHITE" GridPane.columnIndex="2">
- <font>
- <Font size="36.0" />
- </font>
- </Button>
- <Button fx:id="six" mnemonicParsing="false" onAction="#six_Click" prefHeight="84.0" prefWidth="200.0" style="-fx-background-color: #000028;" text="6" textFill="WHITE" GridPane.columnIndex="2" GridPane.rowIndex="1">
- <font>
- <Font size="36.0" />
- </font>
- </Button>
- <Button fx:id="three" mnemonicParsing="false" onAction="#three_Click" prefHeight="96.0" prefWidth="200.0" style="-fx-background-color: #000028;" text="3" textFill="WHITE" GridPane.columnIndex="2" GridPane.rowIndex="2">
- <font>
- <Font size="36.0" />
- </font>
- </Button>
- <Button fx:id="prev" mnemonicParsing="false" onAction="#prev_Click" prefHeight="255.0" prefWidth="200.0" style="-fx-background-color: #000028;" text="prev" textFill="WHITE" GridPane.columnIndex="2" GridPane.rowIndex="3">
- <font>
- <Font size="36.0" />
- </font>
- </Button>
- <Button fx:id="save" mnemonicParsing="false" onAction="#save_Click" prefHeight="109.0" prefWidth="200.0" style="-fx-background-color: #000028;" text="save" textFill="WHITE" GridPane.columnIndex="1" GridPane.rowIndex="4">
- <font>
- <Font size="36.0" />
- </font>
- </Button>
- <Button fx:id="load" mnemonicParsing="false" onAction="#load_Click" prefHeight="144.0" prefWidth="200.0" style="-fx-background-color: #000028;" text="load" textFill="WHITE" GridPane.columnIndex="2" GridPane.rowIndex="4">
- <font>
- <Font size="36.0" />
- </font>
- </Button>
- </children>
- </GridPane>
- </center>
- <right>
- <VBox prefHeight="200.0" prefWidth="100.0" BorderPane.alignment="CENTER">
- <children>
- <Button fx:id="add" mnemonicParsing="false" onAction="#add_Click" prefHeight="270.0" prefWidth="100.0" style="-fx-background-color: #62B2FF;" text="+" textFill="WHITE">
- <font>
- <Font size="24.0" />
- </font>
- </Button>
- <Button fx:id="minus" layoutX="10.0" layoutY="10.0" mnemonicParsing="false" onAction="#minus_Click" prefHeight="270.0" prefWidth="100.0" style="-fx-background-color: #62B2FF;" text="-" textFill="WHITE">
- <font>
- <Font size="24.0" />
- </font>
- </Button>
- <Button fx:id="multi" layoutX="10.0" layoutY="61.0" mnemonicParsing="false" onAction="#multi_Click" prefHeight="270.0" prefWidth="100.0" style="-fx-background-color: #62B2FF;" text="x" textFill="WHITE">
- <font>
- <Font size="24.0" />
- </font>
- </Button>
- <Button fx:id="devided" layoutX="10.0" layoutY="112.0" mnemonicParsing="false" onAction="#divided_Click" prefHeight="270.0" prefWidth="100.0" style="-fx-background-color: #62B2FF;" text="/" textFill="WHITE">
- <font>
- <Font size="24.0" />
- </font>
- </Button>
- </children>
- </VBox>
- </right>
- <bottom>
- <HBox prefHeight="89.0" prefWidth="640.0" BorderPane.alignment="CENTER">
- <children>
- <Button fx:id="negative" layoutX="10.0" layoutY="10.0" mnemonicParsing="false" onAction="#negative_Click" prefHeight="88.0" prefWidth="500.0" style="-fx-background-color: #62B2FF;" text="(-)" textFill="WHITE">
- <font>
- <Font size="36.0" />
- </font>
- </Button>
- <Button fx:id="clear" mnemonicParsing="false" onAction="#clear_Click" prefHeight="88.0" prefWidth="500.0" style="-fx-background-color: #62B2FF;" text="c" textFill="WHITE">
- <font>
- <Font size="36.0" />
- </font>
- </Button>
- <Button fx:id="equal" layoutX="140.0" layoutY="10.0" mnemonicParsing="false" onAction="#equal_Click" prefHeight="88.0" prefWidth="500.0" style="-fx-background-color: #62B2FF;" text="=" textFill="WHITE">
- <font>
- <Font size="36.0" />
- </font>
- </Button>
- </children>
- </HBox>
- </bottom>
- <top>
- <AnchorPane prefHeight="100.0" prefWidth="640.0" BorderPane.alignment="CENTER">
- <children>
- <TextField fx:id="input" alignment="BOTTOM_RIGHT" layoutY="-1.0" prefHeight="103.0" prefWidth="640.0" style="-fx-background-color: #62B2FF;">
- <font>
- <Font size="36.0" />
- </font>
- </TextField>
- <Label fx:id="prom" alignment="CENTER_RIGHT" contentDisplay="RIGHT" layoutX="-1.0" layoutY="-1.0" prefHeight="30.0" prefWidth="640.0" style="-fx-background-color: #62B2FF;">
- <font>
- <Font size="20.0" />
- </font>
- </Label>
- <Label />
- </children>
- </AnchorPane>
- </top>
- </BorderPane>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement