Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed2007-09-06 18:01:36 +0000
committerGrant Gayed2007-09-06 18:01:36 +0000
commit1b2fa5437e45cf640786433cad700cc54c2d8ed8 (patch)
treeb153fb13fda8e1176c4ecf74bef46add4dd6f1db
parent2c1bdeb57372bcae0cd8250d8dc8c8acb4b3f821 (diff)
downloadeclipse.platform.swt-1b2fa5437e45cf640786433cad700cc54c2d8ed8.tar.gz
eclipse.platform.swt-1b2fa5437e45cf640786433cad700cc54c2d8ed8.tar.xz
eclipse.platform.swt-1b2fa5437e45cf640786433cad700cc54c2d8ed8.zip
*** empty log message ***
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet188.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet188.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet188.java
index 715d897342..13044c2d2b 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet188.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet188.java
@@ -31,9 +31,6 @@ public static void main (String [] args) {
Display display = new Display ();
Shell shell = new Shell (display);
shell.setLayout(new GridLayout());
- Button b1 = new Button(shell, SWT.PUSH);
- b1.setText("top");
- b1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
final ScrolledComposite sc = new ScrolledComposite(shell, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
sc.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
Composite c = new Composite(sc, SWT.NONE);
@@ -42,10 +39,6 @@ public static void main (String [] args) {
Button b = new Button(c, SWT.PUSH);
b.setText("Button "+i);
}
- Button b2 = new Button(shell, SWT.PUSH);
- b2.setText("bottom");
- b2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
-
sc.setContent(c);
sc.setExpandHorizontal(true);
sc.setExpandVertical(true);
@@ -68,6 +61,7 @@ public static void main (String [] args) {
for (int i = 0; i < controls.length; i++) {
controls[i].addListener(SWT.Activate, listener);
}
+
shell.setSize(300, 500);
shell.open ();
while (!shell.isDisposed ()) {

Back to the top