Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

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

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
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?

Don't sweat petty things, or pet sweaty things. But cuddle this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!