|Calculating table column width [message #448314]
||Fri, 07 January 2005 01:38
Originally posted by: skrap.post.gmail.com|
I'd like to calculate the width for columns in a table where the cells
will have strings of varying lengths so I can set the width of the columns
as the data in the table changes. Pack() works fine for normal tables but
not so good for virtual tables. I'm not sure how to go from the string
length to an int to send to TableColumn.setWidth() and make it work
whatever font, fontsize etc the table might have.
If there is something that does this for virtual tables already, I've
missed it and apologize.
Powered by FUDForum
. Page generated in 0.01909 seconds