-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df9ec46
commit f0b18f6
Showing
9 changed files
with
210 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
<?import javafx.scene.control.*?> | ||
<?import javafx.scene.layout.*?> | ||
<BorderPane fx:controller="TicTacToeJavaFX.GameBoardController" | ||
xmlns:fx="http://javafx.com/fxml"> | ||
<BorderPane xmlns:fx="http://javafx.com/fxml" | ||
fx:controller="TicTacToeJavaFX.GameBoardController"> | ||
<center> | ||
<VBox> | ||
<HBox> | ||
<Button fx:id="btn1"></Button> | ||
<Button fx:id="btn2"></Button> | ||
<Button fx:id="btn3"></Button> | ||
<Button fx:id="btn1"/> | ||
<Button fx:id="btn2"/> | ||
<Button fx:id="btn3"/> | ||
</HBox> | ||
|
||
<HBox> | ||
<Button fx:id="btn4"></Button> | ||
<Button fx:id="btn5"></Button> | ||
<Button fx:id="btn6"></Button> | ||
<Button fx:id="btn4"/> | ||
<Button fx:id="btn5"/> | ||
<Button fx:id="btn6"/> | ||
</HBox> | ||
|
||
<HBox> | ||
<Button fx:id="btn7"></Button> | ||
<Button fx:id="btn8"></Button> | ||
<Button fx:id="btn9"></Button> | ||
<Button fx:id="btn7"/> | ||
<Button fx:id="btn8"/> | ||
<Button fx:id="btn9"/> | ||
</HBox> | ||
</VBox> | ||
</center> | ||
|
||
<bottom> | ||
<Label fx:id="bottomCopyrightLabel" text="©Akhilesh Garg" BorderPane.alignment="BOTTOM_CENTER"></Label> | ||
<Label fx:id="bottomCopyrightLabel" text="©Akhilesh Garg" BorderPane.alignment="BOTTOM_CENTER"/> | ||
</bottom> | ||
|
||
</BorderPane> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package TicTacToeJavaFX; | ||
|
||
/** | ||
* @author Akhilesh Garg | ||
* @since 08-03-2023 | ||
*/ | ||
final class Utils { | ||
|
||
private Utils() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
static boolean isStringValid(final String str) { | ||
return str != null && !str.trim().isEmpty(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
module SampleJavaFX { | ||
|
||
requires javafx.fxml; | ||
requires javafx.controls; | ||
|
||
opens TicTacToeJavaFX; | ||
} | ||
//module SampleJavaFX { | ||
// requires jfxrt; | ||
// requires rt; | ||
// | ||
// opens TicTacToeJavaFX; | ||
//} |