I have a file and i read data from this and put them in a jTable
. The problem is that when the file has many data (e.g 300.000 rows), my application needs a lot of memory (350MB). Is there any efficient way in order to load many rows in a JTable
?
I created a Default Model
and a Jtable like that:
DefaultTableModel model = new DefaultTableModel(array, colNames);
JTable data_table = new JTable();
data_table.setModel(model);
The array 'array' contains the data and the array 'colNames' the names of the Columns.