Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TreeViewer with columns?
TreeViewer with columns? [message #463684] Fri, 11 November 2005 15:39 Go to next message
Edwin Chan is currently offline Edwin ChanFriend
Messages: 1
Registered: July 2009
Junior Member
I'd like to add columns to my TreeViewer, but when I create the
TreeColumns, nothing shows up (even the tree that used to be there).

Is there something else that I have to do to get it to work?

edwin
Re: TreeViewer with columns? [message #463686 is a reply to message #463684] Fri, 11 November 2005 18:00 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
You need to give the TreeColumns some width. You can either use
TreeColumn.setWidth() or TreeColumn.pack().

"Edwin Chan" <changed99@hotmail.com> wrote in message
news:dl2duh$qv4$1@news.eclipse.org...
>
> I'd like to add columns to my TreeViewer, but when I create the
> TreeColumns, nothing shows up (even the tree that used to be there).
>
> Is there something else that I have to do to get it to work?
>
> edwin
Previous Topic:save file dialog overwriting the file
Next Topic:CaretListener
Goto Forum:
  


Current Time: Tue Apr 23 14:01:41 GMT 2024

Powered by FUDForum. Page generated in 0.03184 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top