Re: JTable: How to memorize the width of the columns ?




Dado wrote:
How can I force my application to memorize the column width, so that I don't
need to set the column with every time I start app?

I'm guessing you change your table width when you've run your
application so here's what to do;

1. add code in so that when the column width has finished being
changed, the program writes this to a file.

2. run your program and change your column widths.

3. change your program to read in the file with the widths and set
column widths accordingly.

hope this helps

.


Quantcast