views:

169

answers:

1

OK - I give up.

How can I set width and height of a JFace ListViewer?

This should be self-evident but can't seem to find anything and there's no obvious way of doing it looking at the methods of the class.

Tried this with no luck:

myListViewer.getControl().setSize(1000, 1000);

Any help appreciated.

+1  A: 

You don't set the size explicitly. you use layouts instead. Layouts manage the size and position of your widgets in a container. Read this eclipse article that will help you understand SWT layouts.

Suraj Chandran
thanks for the link - so there is no way to achieve a fixed layout in swt?
JohnIdol