This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to determine size of TableColumn text?  RSS feed

 
Jeff Berman
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I have an SWT table with several columns. I can set each column's heading text by using
However, how do you determine how wide the rendered heading text will be so that you can appropriately set the column width? In this particular column, the width of the contents will be smaller than the width of the heading text, so I'd like to make the column wide enough to completely show the heading text.

Thanks in advance!
[ November 17, 2008: Message edited by: Jeff Berman ]
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out

Ok. My bad. Realized later it was SWT. Sorry.
[ November 17, 2008: Message edited by: Maneesh Godbole ]
 
Jeff Berman
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's ok, thanks for wanting to help.

Does anyone else know the answer to this?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!