Print very big JTable

Hi all,

i have to print a very big table with 100000 rows and 6 columns, i have put the System.gc() at the end of the print method but when i print the table the print process become too big (more or less 700 kB for page and there are 1048 pages).

It is possible to make a pdf of my table and this solution is better like the first?

When i make the preview this take a lot of time for the size of the table, because first i have to create the table and then i preview it.

There is a way to reduce the time lost for the table generation?

N.B.: the data in the table is always the same.

Thanks a lot!!!

[645 byte] By [ger8a] at [2007-9-30 2:26:24]
# 1

> There is a way to reduce the time lost for the table

> generation?

Write a table model, extending AbstractTableModel.

The model is queried for each cell. Usually all the columns

of one row are retrieved before getting next row. You may cache

one row in the model: not the whole table!

vesely99a at 2007-7-16 13:36:24 > top of Java-index,Archived Forums,Swing...