diff --git a/client/app/src/main/java/main/OptionController.java b/client/app/src/main/java/main/OptionController.java index 9059203..11fae92 100644 --- a/client/app/src/main/java/main/OptionController.java +++ b/client/app/src/main/java/main/OptionController.java @@ -34,8 +34,6 @@ public class OptionController { @FXML public Label labelError; @FXML - public JFXComboBox userCmb; - @FXML public GridPane mainGrid; @FXML @@ -52,7 +50,7 @@ public class OptionController { for (User user: users) { observableUserList.add(user.getLogin()); } - JFXComboBox comboBox = new JFXComboBox(observableUserList); + JFXComboBox comboBox = new JFXComboBox<>(observableUserList); comboBox.getStyleClass().add("comboBox"); mainGrid.add(comboBox, 2,2);