Issue
I need to set a default value for a ComboBox
from an ObservableArrayList
, I am trying to set the first value in my ArrayList
as a default value.
List = FXCollections.observableArrayList(arrayList);
comboBox.setItems(List);
Solution
comboBox.getSelectionModel().selectFirst();
Answered By - Uluk Biy