For example, if you have an ArrayList
, you can do the following:
ArrayList<T> list = new ArrayList<T>();
ObservableList<T> data = FXCollections.observableArrayList(list);
Similarly, if I have a custom-made Stack
instead of an ArrayList
, how would I make an ObservableList
off of that?