diff --git a/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ClientApp.java b/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ClientApp.java index fc216d7..d5e2e2a 100644 --- a/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ClientApp.java +++ b/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ClientApp.java @@ -8,11 +8,9 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; /** - * Entry point for the Casono client application. Handles client startup and - * connection parameters. + * Entry point for the Casono client application. Handles client startup and connection parameters. * - *

- * Default constructor for the application. + *

Default constructor for the application. */ public class ClientApp { diff --git a/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ui/Launcher.java b/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ui/Launcher.java index a5f74de..85d42df 100644 --- a/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ui/Launcher.java +++ b/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ui/Launcher.java @@ -6,8 +6,7 @@ import javafx.application.Application; /** * Launcher for the Casono main UI. * - *

- * Default constructor for the application. + *

Default constructor for the application. */ public class Launcher { diff --git a/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ui/lobbyui/Casinomainui.java b/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ui/lobbyui/Casinomainui.java index a87a3df..0088781 100644 --- a/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ui/lobbyui/Casinomainui.java +++ b/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ui/lobbyui/Casinomainui.java @@ -10,8 +10,7 @@ import javafx.stage.Stage; /** * JavaFX Application class for the Casono main UI. * - *

- * Default constructor for the application. + *

Default constructor for the application. */ public class Casinomainui extends Application { @@ -31,11 +30,13 @@ public class Casinomainui extends Application { * @throws IOException If loading the FXML fails. */ public void start(Stage stage) throws IOException { - FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/ui-structure/Casinomainui.fxml")); + FXMLLoader fxmlLoader = + new FXMLLoader(getClass().getResource("/ui-structure/Casinomainui.fxml")); Scene scene = new Scene(fxmlLoader.load(), SCENE_WIDTH, SCENE_HEIGHT); stage.setTitle("Casono"); - javafx.scene.image.Image icon = new javafx.scene.image.Image( - getClass().getResource("/images/logoinverted.png").toExternalForm()); + javafx.scene.image.Image icon = + new javafx.scene.image.Image( + getClass().getResource("/images/logoinverted.png").toExternalForm()); stage.getIcons().add(icon); stage.setScene(scene); stage.setFullScreen(true); diff --git a/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ui/lobbyui/CasinomainuiController.java b/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ui/lobbyui/CasinomainuiController.java index 88bb5aa..c82a381 100644 --- a/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ui/lobbyui/CasinomainuiController.java +++ b/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ui/lobbyui/CasinomainuiController.java @@ -12,27 +12,17 @@ import javafx.scene.shape.Rectangle; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; -/** - * Controller for the Casono main UI lobby. Handles UI initialization and user - * actions. - */ +/** Controller for the Casono main UI lobby. Handles UI initialization and user actions. */ public class CasinomainuiController { private static final Logger LOGGER = LogManager.getLogger(CasinomainuiController.class); - @FXML - private AnchorPane rootPane; - @FXML - private Label titleLabel; - @FXML - private Label subtitleLabel; - @FXML - private ImageView logoView; - @FXML - private Rectangle greenBox; - @FXML - private Button exitbutton; - @FXML - private VBox casinoTable; + @FXML private AnchorPane rootPane; + @FXML private Label titleLabel; + @FXML private Label subtitleLabel; + @FXML private ImageView logoView; + @FXML private Rectangle greenBox; + @FXML private Button exitbutton; + @FXML private VBox casinoTable; private LobbyButtonTranslationManager translationManager; private LobbyButtonGridManager gridManager; @@ -51,7 +41,8 @@ public class CasinomainuiController { logoView.setImage(new Image(getClass().getResource("/images/logo.png").toExternalForm())); translationManager = LobbyButtonTranslationManager.getInstance(); - gridManager = new LobbyButtonGridManager(new javafx.scene.layout.GridPane(), translationManager); + gridManager = + new LobbyButtonGridManager(new javafx.scene.layout.GridPane(), translationManager); casinoTable.getChildren().clear(); casinoTable.getChildren().add(gridManager.getGridPane()); gridManager.renderLobbyButtons(); diff --git a/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ui/lobbyui/LobbyButtonTranslationManager.java b/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ui/lobbyui/LobbyButtonTranslationManager.java index 40e018f..967fe83 100644 --- a/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ui/lobbyui/LobbyButtonTranslationManager.java +++ b/src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ui/lobbyui/LobbyButtonTranslationManager.java @@ -4,8 +4,7 @@ import java.util.HashMap; import java.util.Map; /** - * Manages the mapping between Button IDs and Lobby IDs in memory only. No file - * operations, + * Manages the mapping between Button IDs and Lobby IDs in memory only. No file operations, * runtime-only data structure. */ public class LobbyButtonTranslationManager { @@ -50,7 +49,7 @@ public class LobbyButtonTranslationManager { * Adds a mapping ButtonID → LobbyID. * * @param buttonId the ID of the button - * @param lobbyId the ID of the lobby + * @param lobbyId the ID of the lobby * @throws Exception when the grid is full */ public void addLobbyButton(int buttonId, int lobbyId) throws Exception {