I am trying to understand a Swing application specifically how tables work. There is a table that retrieves data from the database and displays the data on the JTable. I went through the code and worked out how the data is read from the database.
One thing that i seem to be struggling with is how the data is displayed on the table and how it is updated. I know how to display data on a table but the difference with this table is that the data is updated dynamically. i.e. Not all of the data that is retrieved from the database is displayed on the table.
It looks like the application displays a number of rows and when the user srolls the mouse or moves the scrollbar to the bottom/end of the table, the application automatically updates the table and displays more data (i can see that there is a slight delay when that happens).
For me to be able to work out how the above is impmlemented i need some more information on this technique i.e. what is this kind of technique called and what are the usual interfaces/classes that are used.
A link to an example of how the above is achieved would be very useful as then i need to see a simplified version first.
Any idea?
Thanks