JFace and composite Layout problem [message #438723] |
Thu, 01 July 2004 02:54 |
Eclipse User |
|
|
|
Originally posted by: owen.thomas.salestech.co.nz
I have a simple JFace (that I would like to run standalone) project with
one class
public class test extends ApplicationWindow{}
What I want is a sah_form with a tree viewer on the left and a composite
with a set of objects such as labels, text fields and a button on the
right.
So far so good nothing too complicated.
Now I try to change the layout of the composite to a GridLayout and
eclipse (RC2) keeps complaining.
SashForm sash_form = new SashForm(parent, SWT.HORIZONTAL | SWT.NULL);
TreeViewer tv = new TreeViewer(sash_form);
Composite comp = new Composite(sash_form, SWT.NULL);
GridLayout GridLayout_1 = new GridLayout();
GridLayout_1.numColumns = 2;
comp.setLayout(GridLayout_1);
Cheers
Owen
|
|
|
|
Powered by
FUDForum. Page generated in 0.03435 seconds