aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to determine size of TableColumn text? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to determine size of TableColumn text?" Watch "How to determine size of TableColumn text?" New topic
Author

How to determine size of TableColumn text?

Jeff Berman
Greenhorn

Joined: Jan 03, 2008
Posts: 7
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

Joined: Jul 26, 2007
Posts: 10523
    
    9

Check out

Ok. My bad. Realized later it was SWT. Sorry.
[ November 17, 2008: Message edited by: Maneesh Godbole ]

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Jeff Berman
Greenhorn

Joined: Jan 03, 2008
Posts: 7
That's ok, thanks for wanting to help.

Does anyone else know the answer to this?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to determine size of TableColumn text?