Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ComboBox - Observable List vs List

 
Tony West
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.




 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic