R
Roedy Green
and now the app behaves better. I guess I am supposed to build the
table contents inside the 'TableTableModel'? IOW:
contents[1, 2] = "Hello";
contents[1, 3] = "World";
[...]
There has to be some of array, or ArrayList or Collection to hold the
data that the DataModel can fetch whenever the GUI decides it that row
is now onscreen. It is up to you to fetch it. How does it get into
the table? That to is completely up to you. It might be put there
with some methods of your own. You might read it from a file. You
might create it with static init. You might fetch it as needed from an
SQL database, caching part of it... How you hold the model is 100% up
to you.