Need help creating a table
I need help creating a table that will read in data and the number of rows and columns will adjust to the size of the data file. (for ex. if the data file needs 4 columns and a 100 rows the table would automatically adjust to this) I know that i need to use either arrays or vectors but I cannot seem to figure out how to make the table since every tutorial I have found online has the data that goes into the rows and columns written in the code. Thanks for the help.
If I could I would like to use the defaultTableModel at the end. I just need help on having the table know how many rows and columns to have.