Skip to content
Snippets Groups Projects

Gui dev

Merged Dean Hoffmann requested to merge gui-dev into dev
1 file
+ 35
12
Compare changes
  • Side-by-side
  • Inline
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.control.Button?>
<VBox alignment="CENTER" spacing="20.0" xmlns:fx="http://javafx.com/fxml"
fx:controller="com.example.tictactoe.tictactoe.TicTacToeController">
<padding>
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0"/>
</padding>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.text.Text?>
<Label fx:id="welcomeText"/>
<Button text="Hello!" onAction="#onHelloButtonClick"/>
</VBox>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1">
<children>
<GridPane layoutX="50.0" layoutY="150.0" prefHeight="500.0" prefWidth="500.0">
<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>
<children>
<Button fx:id="tile1" mnemonicParsing="false" prefHeight="170.0" prefWidth="177.0" text="but1" />
<Button fx:id="tile2" mnemonicParsing="false" prefHeight="184.0" prefWidth="278.0" text="but2" GridPane.columnIndex="1" />
<Button fx:id="tile3" mnemonicParsing="false" prefHeight="234.0" prefWidth="327.0" text="but3" GridPane.columnIndex="2" />
<Button fx:id="tile4" mnemonicParsing="false" prefHeight="260.0" prefWidth="378.0" text="but4" GridPane.rowIndex="1" />
<Button fx:id="tile5" mnemonicParsing="false" prefHeight="209.0" prefWidth="294.0" text="but5" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<Button fx:id="tile6" mnemonicParsing="false" prefHeight="227.0" prefWidth="291.0" text="but6" GridPane.columnIndex="2" GridPane.rowIndex="1" />
<Button fx:id="tile7" mnemonicParsing="false" prefHeight="209.0" prefWidth="233.0" text="but7" GridPane.rowIndex="2" />
<Button fx:id="tile8" mnemonicParsing="false" prefHeight="234.0" prefWidth="260.0" text="but8" GridPane.columnIndex="1" GridPane.rowIndex="2" />
<Button fx:id="tile9" mnemonicParsing="false" prefHeight="226.0" prefWidth="262.0" text="but9" GridPane.columnIndex="2" GridPane.rowIndex="2" />
</children>
</GridPane>
<Button layoutX="274.0" layoutY="717.0" mnemonicParsing="false" onAction="#gameReset" text="RESET" />
<Text fx:id="winnerText" layoutX="287.0" layoutY="56.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Text" textAlignment="CENTER" wrappingWidth="29.13671875" />
</children>
</AnchorPane>
Loading