Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2012-01-27 15:13:24 -0500
committerCarolyn MacLeod2012-01-27 15:13:24 -0500
commit474c95af739a4cba237a80cddc4c08b2cdd1361a (patch)
tree186b453541280549d10a95881fcd9b71796a0b4a /examples
parent6f1d087b428a735c63b7cb023a054ebc44beff72 (diff)
downloadeclipse.platform.swt-474c95af739a4cba237a80cddc4c08b2cdd1361a.tar.gz
eclipse.platform.swt-474c95af739a4cba237a80cddc4c08b2cdd1361a.tar.xz
eclipse.platform.swt-474c95af739a4cba237a80cddc4c08b2cdd1361a.zip
pack shell
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet361.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet361.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet361.java
index d619394380..258b398e3e 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet361.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet361.java
@@ -148,7 +148,9 @@ public class Snippet361 {
});
composite = new Composite(shell, SWT.EMBEDDED | SWT.BORDER);
- composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 8, 1));
+ GridData data = new GridData(SWT.FILL, SWT.FILL, true, true, 8, 1);
+ data.heightHint = 400;
+ composite.setLayoutData(data);
Frame frame = SWT_AWT.new_Frame(composite);
canvas = new Canvas() {
public void paint (Graphics g) {
@@ -175,6 +177,7 @@ public class Snippet361 {
}
});
+ shell.pack();
shell.open();
while(!shell.isDisposed()) {
if (!display.readAndDispatch()) display.sleep();

Back to the top