Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <?import javafx.scene.text.*?>
- <?import javafx.scene.image.*?>
- <?import java.lang.*?>
- <?import java.util.*?>
- <?import javafx.scene.*?>
- <?import javafx.scene.control.*?>
- <?import javafx.scene.layout.*?>
- <AnchorPane id="AnchorPane" prefHeight="200" prefWidth="320" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="slotmachine.FXMLDocumentController">
- <children>
- <Button fx:id="button" layoutX="126.0" layoutY="161.0" onAction="#handleButtonAction" text="Spin" />
- <ImageView fx:id="left" fitHeight="73.0" fitWidth="95.0" layoutX="14.0" layoutY="14.0" pickOnBounds="true" preserveRatio="true">
- <image>
- <Image url="file:/C:/Users/Nicolas/Documents/_JAVA/Source%20Code/chapter%2014/Images/Fruit%20Symbols/Apple.png" />
- </image>
- </ImageView>
- <ImageView fx:id="middle" fitHeight="73.0" fitWidth="95.0" layoutX="122.0" layoutY="14.0" pickOnBounds="true" preserveRatio="true">
- <image>
- <Image url="file:/C:/Users/Nicolas/Documents/_JAVA/Source%20Code/chapter%2014/Images/Fruit%20Symbols/Apple.png" />
- </image>
- </ImageView>
- <ImageView fx:id="right" fitHeight="73.0" fitWidth="95.0" layoutX="233.0" layoutY="14.0" pickOnBounds="true" preserveRatio="true">
- <image>
- <Image url="file:/C:/Users/Nicolas/Documents/_JAVA/Source%20Code/chapter%2014/Images/Fruit%20Symbols/Apple.png" />
- </image>
- </ImageView>
- <Label layoutX="14.0" layoutY="112.0" prefHeight="17.0" prefWidth="103.0" text="Amount Inserted: $" />
- <TextField fx:id="textBox" layoutX="117.0" layoutY="108.0" prefHeight="25.0" prefWidth="50.0" />
- <Label layoutX="195.0" layoutY="112.0" prefHeight="17.0" prefWidth="93.0" text="Amount Won This Spin: $">
- <font>
- <Font size="8.0" />
- </font>
- </Label>
- <Label layoutX="209.0" layoutY="137.0" prefHeight="17.0" prefWidth="79.0" text="Total Amount Won: $">
- <font>
- <Font size="8.0" />
- </font>
- </Label>
- <Label fx:id="spinWin" layoutX="288.0" layoutY="112.0" />
- <Label fx:id="totalWin" layoutX="288.0" layoutY="137.0" />
- <Button fx:id="button2" layoutX="25.0" layoutY="164.0" mnemonicParsing="false" onAction="#instaWin" text="Insta-Win">
- <font>
- <Font size="9.0" />
- </font>
- </Button>
- </children>
- </AnchorPane>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement