This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes multicolumn TreeViewer with composite as content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "multicolumn TreeViewer with composite as content" Watch "multicolumn TreeViewer with composite as content" New topic
Author

multicolumn TreeViewer with composite as content

Alex Degaltsev
Greenhorn

Joined: Jul 01, 2011
Posts: 2
Hi,

I want to create a multicolumn tree like interface for a graphics editor, similar to the one on the image below. It will contain layers as parent tree items (with the possibility to add or remove layers) and table like collection of child items representing layer settings. Which widget will suit this purpose better? I thought of a TreeViewer, but it only allows to set a LabelProvider with getText() or getImage() methods, so I can't insert a widget as a child node. What do you thing will be the most appropriate thing to use in my case?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20137
    
  30

Are you using SWT or Swing?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Alex Degaltsev
Greenhorn

Joined: Jul 01, 2011
Posts: 2
Sorry, forgot to mention. I'm using SWT+JFace.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multicolumn TreeViewer with composite as content
 
It's not a secret anymore!