diff options
author | Veronika Irvine | 2006-04-17 14:57:57 +0000 |
---|---|---|
committer | Veronika Irvine | 2006-04-17 14:57:57 +0000 |
commit | 39b4c6712c42f6c2dd851390c4e5d852d4f6e232 (patch) | |
tree | 92f762d359e1a633654bd7d717bb4d06d4e02d68 | |
parent | 2a079fae40207fc882091fdd7b712510ab08f4a1 (diff) | |
download | eclipse.platform.swt-39b4c6712c42f6c2dd851390c4e5d852d4f6e232.tar.gz eclipse.platform.swt-39b4c6712c42f6c2dd851390c4e5d852d4f6e232.tar.xz eclipse.platform.swt-39b4c6712c42f6c2dd851390c4e5d852d4f6e232.zip |
If you have a layout, no setSize() is required
-rw-r--r-- | examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet15.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet15.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet15.java index 0557c411a2..eafedc7ad4 100644 --- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet15.java +++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet15.java @@ -27,8 +27,6 @@ public static void main (String [] args) { Shell shell = new Shell (display); shell.setLayout(new FillLayout()); final Tree tree = new Tree (shell, SWT.BORDER); - tree.setSize (100, 100); - shell.setSize (200, 200); for (int i=0; i<4; i++) { TreeItem iItem = new TreeItem (tree, 0); iItem.setText ("TreeItem (0) -" + i); @@ -45,6 +43,7 @@ public static void main (String [] args) { } } } + shell.setSize (200, 200); shell.open (); while (!shell.isDisposed()) { if (!display.readAndDispatch ()) display.sleep (); |