Hi to everyone,
I want to make the width of columns in JTable according to the width of biggest cell. But for this I think I need to read almost all the record set. It will definately slow down the processing speed so its not looking me a good solution.
Another solution that I am thinking is to extend the length of heading titles (array of field names) by filling it with space, accroding to database schema and then adjust the the column width according to these headers. But in some cases column width may be unnecessarialy wide.
I would like to know your opinion to get a better solution.
Thanks! in Advance
Best Regards!
Tahir
I want to make the width of columns in JTable according to the width of biggest cell. But for this I think I need to read almost all the record set. It will definately slow down the processing speed so its not looking me a good solution.
Another solution that I am thinking is to extend the length of heading titles (array of field names) by filling it with space, accroding to database schema and then adjust the the column width according to these headers. But in some cases column width may be unnecessarialy wide.
I would like to know your opinion to get a better solution.
Thanks! in Advance
Best Regards!
Tahir