Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ViewForm Troubles
ViewForm Troubles [message #464912] Thu, 01 December 2005 06:35 Go to next message
Jeff Yuan is currently offline Jeff YuanFriend
Messages: 34
Registered: July 2009
Member
Hi,
I'm trying to use a ViewForm, and set its content to a table. But nothing
appears when I do it.

ViewForm vf = new ViewForm(parent, SWT.BORDER);
Composite c1 = new Composite(vf, SWT.NONE);
Tree tree = new TreeViewer(c1, SWT.SINGLE);
vf.setContent(c1);

But nothing appears in the ViewForm. If I don't use a viewform, the tree
displays fine, any ideas why the problem?

Thanks.
Re: ViewForm Troubles [message #464922 is a reply to message #464912] Thu, 01 December 2005 15:10 Go to previous message
Eclipse UserFriend
Originally posted by: friederich.kupzog.de

Hi, did you try to set a layout for your composite?

zinc wrote:
> Hi,
> I'm trying to use a ViewForm, and set its content to a table. But
> nothing appears when I do it.
>
> ViewForm vf = new ViewForm(parent, SWT.BORDER);
> Composite c1 = new Composite(vf, SWT.NONE);
> Tree tree = new TreeViewer(c1, SWT.SINGLE);
> vf.setContent(c1);
>
> But nothing appears in the ViewForm. If I don't use a viewform, the
> tree displays fine, any ideas why the problem?
>
> Thanks.
>


--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel +49 241 9979356
Fax +49 221 726670
www.kupzog.de/fkmk
Previous Topic:How to connect model to GUI using JFace?
Next Topic:SWT Table display
Goto Forum:
  


Current Time: Wed Dec 04 16:41:34 GMT 2024

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

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

Back to the top