Skip to content

Commit

Permalink
removed some view element
Browse files Browse the repository at this point in the history
  • Loading branch information
andsam0 committed Feb 17, 2024
1 parent 5af9710 commit 94204ab
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main/java/it/unibo/view/app/StartMenuView.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
import javafx.scene.control.Button;
import javafx.scene.control.ComboBox;
import javafx.scene.control.Label;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
Expand Down Expand Up @@ -88,7 +87,6 @@ private void addPlayer(final int size, final ObservableList<String> list, final
*/
public Scene getScene() {
final BorderPane root = new BorderPane();
final ComboBox<String> mapChoice = new ComboBox<>();
final VBox playBox = new VBox();
final Button playButton = new Button("PLAY");
final Button addButton = new Button("ADD PLAYER");
Expand Down Expand Up @@ -137,12 +135,9 @@ public Scene getScene() {

tableView.setItems(players);
tableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
mapChoice.setPromptText("Choose a map");
mapChoice.getItems().add("Beginner Map");
mapChoice.getItems().add("Random Map");
textField.setPromptText("Insert player name");
textField.setMaxSize(maxTextAreaWidth, maxTextAreaHeight);
playBox.getChildren().addAll(textField, addButton, tableView, playButton, mapChoice);
playBox.getChildren().addAll(textField, addButton, tableView, playButton);
playBox.setSpacing(childrenSpacing);
tableView.setPlaceholder(new Label(""));

Expand Down

0 comments on commit 94204ab

Please sign in to comment.