Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VBox fx:id="parent" prefHeight="640.0" prefWidth="640.0" xmlns="http://javafx.com/javafx/10.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="Controller">
- <children>
- <BorderPane prefHeight="400.0" prefWidth="482.0" stylesheets="@bootstrap3.css" VBox.vgrow="ALWAYS">
- <VBox.margin>
- <Insets />
- </VBox.margin>
- <top>
- <Text fx:id="generationNumber" strokeType="OUTSIDE" strokeWidth="0.0" text="Generation: " BorderPane.alignment="CENTER">
- <BorderPane.margin>
- <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
- </BorderPane.margin></Text>
- </top>
- <center>
- <Canvas fx:id="gameOfLifeCanvas" height="500.0" width="500.0" BorderPane.alignment="CENTER" />
- </center>
- <bottom>
- <TabPane fx:id="controlPanel" minHeight="700.0" prefHeight="250.0" prefWidth="640.0" tabClosingPolicy="UNAVAILABLE" BorderPane.alignment="CENTER">
- <tabs>
- <Tab text="Board">
- <content>
- <HBox minHeight="200.0" prefHeight="100.0" prefWidth="200.0">
- <children>
- <Button fx:id="generateButton" mnemonicParsing="false" onAction="#generateButtonClicked" prefWidth="120.0" stylesheets="@bootstrap3.css" text="Generate">
- <styleClass>
- <String fx:value="primary" />
- <String fx:value="middle" />
- </styleClass>
- </Button>
- <TextField fx:id="startHeight" promptText="Height" stylesheets="@bootstrap3.css">
- <HBox.margin>
- <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
- </HBox.margin>
- </TextField>
- <TextField fx:id="startWidth" promptText="Width">
- <HBox.margin>
- <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
- </HBox.margin>
- </TextField>
- </children>
- </HBox>
- </content>
- </Tab>
- <Tab text="Controls">
- <content>
- <HBox alignment="CENTER" minHeight="200.0" prefHeight="100.0" prefWidth="200.0">
- <children>
- <HBox alignment="CENTER" nodeOrientation="LEFT_TO_RIGHT" prefHeight="163.0" prefWidth="653.0">
- <children>
- <VBox alignment="CENTER" prefHeight="163.0" prefWidth="132.0">
- <children>
- <Button fx:id="randomizeButton" mnemonicParsing="false" onAction="#randomizeButtonClicked" prefWidth="120.0" stylesheets="@bootstrap3.css" text="Randomize">
- <VBox.margin>
- <Insets left="5.0" right="5.0" />
- </VBox.margin>
- <styleClass>
- <String fx:value="first" />
- <String fx:value="info" />
- </styleClass>
- </Button>
- <Button fx:id="clearButton" mnemonicParsing="false" onAction="#clearButtonClicked" prefWidth="120.0" stylesheets="@bootstrap3.css" text="Clear">
- <VBox.margin>
- <Insets left="5.0" right="5.0" />
- </VBox.margin>
- <styleClass>
- <String fx:value="last" />
- <String fx:value="danger" />
- </styleClass>
- </Button>
- </children>
- <padding>
- <Insets left="20.0" />
- </padding>
- </VBox>
- <Region prefHeight="163.0" prefWidth="80.0" />
- <VBox alignment="CENTER" prefHeight="163.0" prefWidth="135.0">
- <children>
- <Button fx:id="advanceButton" mnemonicParsing="false" onAction="#advanceButtonClicked" prefWidth="150.0" stylesheets="@bootstrap3.css" text="Advance">
- <VBox.margin>
- <Insets left="5.0" right="5.0" top="5.0" />
- </VBox.margin>
- <styleClass>
- <String fx:value="success" />
- <String fx:value="first" />
- </styleClass></Button>
- <Button fx:id="rewindButton" minWidth="-Infinity" mnemonicParsing="false" onAction="#rewindButtonClicked" prefWidth="150.0" text="Rewind">
- <VBox.margin>
- <Insets bottom="5.0" left="5.0" right="5.0" />
- </VBox.margin>
- <styleClass>
- <String fx:value="warning" />
- <String fx:value="last" />
- </styleClass></Button>
- </children>
- </VBox>
- <Region prefHeight="163.0" prefWidth="80.0" />
- <VBox alignment="CENTER" prefHeight="163.0" prefWidth="201.0">
- <children>
- <HBox alignment="CENTER" prefHeight="40.0" prefWidth="153.0">
- <children>
- <Button fx:id="playButton" mnemonicParsing="false" onAction="#playButtonClicked" prefWidth="150.0" text="▶">
- <HBox.margin>
- <Insets bottom="5.0" top="5.0" />
- </HBox.margin>
- <styleClass>
- <String fx:value="primary" />
- <String fx:value="first" />
- </styleClass>
- </Button>
- <Button fx:id="pauseButton" mnemonicParsing="false" onAction="#pauseButtonClicked" prefWidth="150.0" stylesheets="@bootstrap3.css" text="⏸">
- <HBox.margin>
- <Insets bottom="5.0" top="5.0" />
- </HBox.margin>
- <styleClass>
- <String fx:value="danger" />
- <String fx:value="last" />
- </styleClass>
- </Button>
- </children>
- <VBox.margin>
- <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
- </VBox.margin>
- </HBox>
- <Slider fx:id="speedSlider" max="1000.0" min="100.0" onDragDone="#speedSliderDrag" />
- </children>
- <padding>
- <Insets right="20.0" />
- </padding>
- </VBox>
- </children>
- </HBox>
- </children>
- </HBox>
- </content>
- </Tab>
- </tabs>
- </TabPane>
- </bottom>
- </BorderPane>
- </children>
- </VBox>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement