Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
rich farrell
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rich,

Would you like to show us the code?

Regards,
Dan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic