summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorCarolyn MacLeod <carolyn>2010-09-01 16:46:54 +0000
committerCarolyn MacLeod <carolyn>2010-09-01 16:46:54 +0000
commitb94c899bebfec50ab9501814e531f187407d38f0 (patch)
tree6f397163201e2fbb81504afbe6ceb11551a81a27 /examples
parent6e57650b3eb55f53e750439a749aebd1ce89c5f0 (diff)
downloadeclipse.platform.swt-b94c899bebfec50ab9501814e531f187407d38f0.tar.gz
eclipse.platform.swt-b94c899bebfec50ab9501814e531f187407d38f0.tar.xz
eclipse.platform.swt-b94c899bebfec50ab9501814e531f187407d38f0.zip
spinner needs border
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/ControlsWithLabelsExample.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/ControlsWithLabelsExample.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/ControlsWithLabelsExample.java
index 5a51dc210a..171c5f25fe 100644
--- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/ControlsWithLabelsExample.java
+++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/ControlsWithLabelsExample.java
@@ -107,7 +107,7 @@ public class ControlsWithLabelsExample {
list.setItems(new String[] {"Item0", "Item1", "Item2"});
new Label(comp, SWT.NONE).setText("Label for Spinner");
- spinner = new Spinner(comp, SWT.NONE);
+ spinner = new Spinner(comp, SWT.BORDER);
new Label(comp, SWT.NONE).setText("Label for Single-line Text");
textSingle = new Text(comp, SWT.SINGLE | SWT.BORDER);
@@ -255,7 +255,7 @@ public class ControlsWithLabelsExample {
new Label(comp, SWT.NONE).setText("Label for Sash");
sash = new Sash(comp, SWT.NONE);
- comp.setSize(comp.computeSize(SWT.DEFAULT, SWT.DEFAULT));
+ comp.pack();
shell.pack();
shell.open();
while (!shell.isDisposed()) {