I'm getting a NullPointerException when I try to populate my ComboBox, I have my class implementing Initializable.
private ObservableList<String> incomeList = FXCollections.observableArrayList("Regular", "Other");
private ObservableList<String> expenseList = FXCollections.observableArrayList("Food", "Entertainment", "Rent",
"Bills", "Other");
@Override
public void initialize(URL location, ResourceBundle resources) {
incomeComboBox.setItems(incomeList);
expenseComboBox.setItems(expenseList);
}
I just want the ComboBoxes to be filled.
Thanks.