1
I use a ComboBox
to add an object to a TableView
and wanted that soon after the user click on the desired object, this item was added in the TableView
and left the list of ComboBox
.
I tried it like this NullPointerException
:
public void handleAddTeacherEvaluator(){
Teacher t = addTeachersBox.getSelectionModel().getSelectedItem();
auxTeachers.add(t); //adicionando na ObservableList da tableView
addTeachersBox.getItems().remove(t);
}