Table problems with Composite [message #440050] |
Wed, 21 July 2004 20:08 |
Eclipse User |
|
|
|
Originally posted by: stefan_30.gmx.de
Hi,
I have some problems with tables implemented in a Composite and hope you can
help me. (I'm a newbie in programming SWT/JFace).
Here is the "problem":
....
Display display = new Display();
Shell shell = new Shell(display, SWT.CLOSE);
Composite composite = new Composite(shell, SWT.NONE);
int style = SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL |
SWT.FULL_SELECTION | SWT.HIDE_SELECTION;
Table table = new Table(composite, style);
....
If I try this, my table has no vertical and horizontal scrollbar.
But If I deliver the shell instance to my table-object, the scrollbars are
visible.
....
Display display = new Display();
Shell shell = new Shell(display, SWT.CLOSE);
int style = SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL |
SWT.FULL_SELECTION | SWT.HIDE_SELECTION;
Table table = new Table(shell, style);
....
|
|
|
|
Powered by
FUDForum. Page generated in 0.02515 seconds