Now there are a couple answers on "how to add data from database to TableView" which I am only going to link one as they are all pretty much duplicates.
So why am I creating a new "duplicate question"? I'm not. I understand the approach used in the answers and even in some blogs, but I don't like it.
The reason I'm using a database is because I wanted to stop wasting memory on holding the data in some sort of list
in my program. Since I've done some android development I learned how useful databases can be. Okay, what is my question really about then?
All these approaches use ObservableList
s and I wanted to avoid that.
Android has something called a Cursor
which pretty much holds the selected data and can be used to fill all kind of content using an adapter.
I have the feeling using ObservableList
makes the database useless as in the end, I got everything in a List
again.
Is there any way to fill the tables without the use of ObservableList
s as it is described in the answer above?