i have a 2d array that i am filling with data from an sql database. I would like the table to only be as big as the size of the database. 24 rows fit in the JScrollPane before the auto scroll starts so 24 as a default could be ok...how do i change it so i dont get an out of bounds exception once i go past 24?
i tried to make a loop that went through the results first and stored an index value...but then the table displays blank.
then use length instead of 24
But just displays a blank table...it is the correct size table though