Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet361.java')
-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