Advertisement
Guest User

Untitled

a guest
Feb 10th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.17 KB | None | 0 0
  1. <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">
  2. <children>
  3. <BorderPane prefHeight="400.0" prefWidth="482.0" stylesheets="@bootstrap3.css" VBox.vgrow="ALWAYS">
  4. <VBox.margin>
  5. <Insets />
  6. </VBox.margin>
  7. <top>
  8. <Text fx:id="generationNumber" strokeType="OUTSIDE" strokeWidth="0.0" text="Generation: " BorderPane.alignment="CENTER">
  9. <BorderPane.margin>
  10. <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
  11. </BorderPane.margin></Text>
  12. </top>
  13. <center>
  14. <Canvas fx:id="gameOfLifeCanvas" height="500.0" width="500.0" BorderPane.alignment="CENTER" />
  15. </center>
  16. <bottom>
  17. <TabPane fx:id="controlPanel" minHeight="700.0" prefHeight="250.0" prefWidth="640.0" tabClosingPolicy="UNAVAILABLE" BorderPane.alignment="CENTER">
  18. <tabs>
  19. <Tab text="Board">
  20. <content>
  21. <HBox minHeight="200.0" prefHeight="100.0" prefWidth="200.0">
  22. <children>
  23. <Button fx:id="generateButton" mnemonicParsing="false" onAction="#generateButtonClicked" prefWidth="120.0" stylesheets="@bootstrap3.css" text="Generate">
  24. <styleClass>
  25. <String fx:value="primary" />
  26. <String fx:value="middle" />
  27. </styleClass>
  28. </Button>
  29. <TextField fx:id="startHeight" promptText="Height" stylesheets="@bootstrap3.css">
  30. <HBox.margin>
  31. <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
  32. </HBox.margin>
  33. </TextField>
  34. <TextField fx:id="startWidth" promptText="Width">
  35. <HBox.margin>
  36. <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
  37. </HBox.margin>
  38. </TextField>
  39. </children>
  40. </HBox>
  41. </content>
  42. </Tab>
  43. <Tab text="Controls">
  44. <content>
  45. <HBox alignment="CENTER" minHeight="200.0" prefHeight="100.0" prefWidth="200.0">
  46. <children>
  47. <HBox alignment="CENTER" nodeOrientation="LEFT_TO_RIGHT" prefHeight="163.0" prefWidth="653.0">
  48. <children>
  49. <VBox alignment="CENTER" prefHeight="163.0" prefWidth="132.0">
  50. <children>
  51. <Button fx:id="randomizeButton" mnemonicParsing="false" onAction="#randomizeButtonClicked" prefWidth="120.0" stylesheets="@bootstrap3.css" text="Randomize">
  52. <VBox.margin>
  53. <Insets left="5.0" right="5.0" />
  54. </VBox.margin>
  55. <styleClass>
  56. <String fx:value="first" />
  57. <String fx:value="info" />
  58. </styleClass>
  59. </Button>
  60. <Button fx:id="clearButton" mnemonicParsing="false" onAction="#clearButtonClicked" prefWidth="120.0" stylesheets="@bootstrap3.css" text="Clear">
  61. <VBox.margin>
  62. <Insets left="5.0" right="5.0" />
  63. </VBox.margin>
  64. <styleClass>
  65. <String fx:value="last" />
  66. <String fx:value="danger" />
  67. </styleClass>
  68. </Button>
  69. </children>
  70. <padding>
  71. <Insets left="20.0" />
  72. </padding>
  73. </VBox>
  74. <Region prefHeight="163.0" prefWidth="80.0" />
  75. <VBox alignment="CENTER" prefHeight="163.0" prefWidth="135.0">
  76. <children>
  77. <Button fx:id="advanceButton" mnemonicParsing="false" onAction="#advanceButtonClicked" prefWidth="150.0" stylesheets="@bootstrap3.css" text="Advance">
  78. <VBox.margin>
  79. <Insets left="5.0" right="5.0" top="5.0" />
  80. </VBox.margin>
  81. <styleClass>
  82. <String fx:value="success" />
  83. <String fx:value="first" />
  84. </styleClass></Button>
  85. <Button fx:id="rewindButton" minWidth="-Infinity" mnemonicParsing="false" onAction="#rewindButtonClicked" prefWidth="150.0" text="Rewind">
  86. <VBox.margin>
  87. <Insets bottom="5.0" left="5.0" right="5.0" />
  88. </VBox.margin>
  89. <styleClass>
  90. <String fx:value="warning" />
  91. <String fx:value="last" />
  92. </styleClass></Button>
  93. </children>
  94. </VBox>
  95. <Region prefHeight="163.0" prefWidth="80.0" />
  96. <VBox alignment="CENTER" prefHeight="163.0" prefWidth="201.0">
  97. <children>
  98. <HBox alignment="CENTER" prefHeight="40.0" prefWidth="153.0">
  99. <children>
  100. <Button fx:id="playButton" mnemonicParsing="false" onAction="#playButtonClicked" prefWidth="150.0" text="▶">
  101. <HBox.margin>
  102. <Insets bottom="5.0" top="5.0" />
  103. </HBox.margin>
  104. <styleClass>
  105. <String fx:value="primary" />
  106. <String fx:value="first" />
  107. </styleClass>
  108. </Button>
  109. <Button fx:id="pauseButton" mnemonicParsing="false" onAction="#pauseButtonClicked" prefWidth="150.0" stylesheets="@bootstrap3.css" text="⏸">
  110. <HBox.margin>
  111. <Insets bottom="5.0" top="5.0" />
  112. </HBox.margin>
  113. <styleClass>
  114. <String fx:value="danger" />
  115. <String fx:value="last" />
  116. </styleClass>
  117. </Button>
  118. </children>
  119. <VBox.margin>
  120. <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
  121. </VBox.margin>
  122. </HBox>
  123. <Slider fx:id="speedSlider" max="1000.0" min="100.0" onDragDone="#speedSliderDrag" />
  124. </children>
  125. <padding>
  126. <Insets right="20.0" />
  127. </padding>
  128. </VBox>
  129. </children>
  130. </HBox>
  131. </children>
  132. </HBox>
  133. </content>
  134. </Tab>
  135. </tabs>
  136. </TabPane>
  137. </bottom>
  138. </BorderPane>
  139. </children>
  140. </VBox>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement