wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes dynamic width of 2 fields, 2nd field width = 1st field width Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "dynamic width of 2 fields, 2nd field width = 1st field width" Watch "dynamic width of 2 fields, 2nd field width = 1st field width" New topic
Author

dynamic width of 2 fields, 2nd field width = 1st field width

rich farrell
Greenhorn

Joined: May 05, 2006
Posts: 4
I have a flextable where the cell widths of the various columns end up being based on the data displayed. The flextable is in a scrollable panel because it might be large. I'm trying to add headers to the columns, but not in the first row of the table because I don't want it to scroll.
I could put another flextable or grid above for labels, however I don't know how to poll the width of the column in the flextable in order to set the width of the corresponding label cell.
Any suggestion on either a better way to do this not using an additional separate table, or a suggestion on how to get the width of the columns in order to set the corresponding column in the label table?
Many Thanks
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1167
Hi Rich,

Would you like to show us the code?

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dynamic width of 2 fields, 2nd field width = 1st field width
 
Similar Threads
in Flextable, how to set a row with special column width
Align of two different tables
Fixed Form Layout
ideas wanted on making this custom JTable cell renderer more efficient
JTable Troubles.