So I have a method retrieving data from a mysql database, and I store it in a 2 dimensional array 'values[i][k]';
Where i represents each individual record, and k presents each value in a record. How would I add this object to a JTable?
The values would look like this in the table, but I want it to be done automatically rather than me having to write it out manually...
values[0][0],values[0][1],values[0][2], values[0][3];
values[1][0],values[1][1],values[1][2], values[1][3];
values[2][0],values[2][1],values[2][2], values[2][3];
values[3][0],values[3][1],values[3][2], values[3][3];
Keeping in mind, values i and k could be any number, not a fixed value.
Any help is appreciated, thanks in advance :)