Fixed raw use of parameterized class 'JFXComboBox'

This commit is contained in:
Marco Kühn 2022-01-26 15:08:44 +01:00
parent 91daf95990
commit a4ce8940ab

View File

@ -34,8 +34,6 @@ public class OptionController {
@FXML
public Label labelError;
@FXML
public JFXComboBox<String> 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<String> comboBox = new JFXComboBox<>(observableUserList);
comboBox.getStyleClass().add("comboBox");
mainGrid.add(comboBox, 2,2);