• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to determine size of TableColumn text?

 
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
Saloon Keeper
Posts: 11073
13
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic