posted 2 years ago
Hi everyone. I am in the process of learning Java and in the textbook I am using ,when building a ComboBox, it uses an ObservableList instead of a regular List. However I was able to replace the ObservableList (line 70) with a List (line 73 - 74) and the code seems to be functionally equivalent. I realize that according to Java documentation a ComboBox should use an ObservableList. But I am curious as to why List seems to work and what under the covers might break when using List.