Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SWT-Teamprojekt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dean Hoffmann
SWT-Teamprojekt
Merge requests
!10
Gui dev
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Gui dev
gui-dev
into
dev
Overview
0
Commits
2
Pipelines
0
Changes
1
Merged
Dean Hoffmann
requested to merge
gui-dev
into
dev
1 year ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
daf5c4ee
2 commits,
1 year ago
1 file
+
35
−
12
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/main/resources/com/example/tictactoe/tictactoe/tictactoe.fxml
+
35
−
12
Options
<?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