diff options
author | Carolyn MacLeod | 2002-04-12 20:22:40 +0000 |
---|---|---|
committer | Carolyn MacLeod | 2002-04-12 20:22:40 +0000 |
commit | 1ac92cc863894e0b21eb4fd7c9c82eddba788333 (patch) | |
tree | 986b77f2ab596a11ba8b656f0798c0b634612f0a /examples | |
parent | a1885fb39aed741169a1dfbd211b21f862eebbec (diff) | |
download | eclipse.platform.swt-1ac92cc863894e0b21eb4fd7c9c82eddba788333.tar.gz eclipse.platform.swt-1ac92cc863894e0b21eb4fd7c9c82eddba788333.tar.xz eclipse.platform.swt-1ac92cc863894e0b21eb4fd7c9c82eddba788333.zip |
*** empty log message ***
Diffstat (limited to 'examples')
2 files changed, 8 insertions, 8 deletions
diff --git a/examples/org.eclipse.swt.examples/org/eclipse/swt/examples/controlexample/CoolBarTab.java b/examples/org.eclipse.swt.examples/org/eclipse/swt/examples/controlexample/CoolBarTab.java index fb857bb79a..34a0f5173e 100644 --- a/examples/org.eclipse.swt.examples/org/eclipse/swt/examples/controlexample/CoolBarTab.java +++ b/examples/org.eclipse.swt.examples/org/eclipse/swt/examples/controlexample/CoolBarTab.java @@ -92,7 +92,7 @@ class CoolBarTab extends Tab { Point pushSize = toolBar.computeSize(SWT.DEFAULT, SWT.DEFAULT);
pushSize = pushItem.computeSize(pushSize.x, pushSize.y);
pushItem.setSize(pushSize);
- pushItem.setMinimumWidth(item.getWidth());
+ pushItem.setMinimumSize(item.getWidth(), pushSize.y);
pushItem.addSelectionListener (new CoolItemDropDownSelectionListener());
/* create the dropdown toolbar */
@@ -110,7 +110,7 @@ class CoolBarTab extends Tab { Point dropSize = toolBar.computeSize(SWT.DEFAULT, SWT.DEFAULT);
dropSize = dropDownItem.computeSize(dropSize.x, dropSize.y);
dropDownItem.setSize(dropSize);
- dropDownItem.setMinimumWidth(item.getWidth());
+ dropDownItem.setMinimumSize(item.getWidth(), dropSize.y);
dropDownItem.addSelectionListener (new CoolItemDropDownSelectionListener());
/* create the radio button toolbar */
@@ -129,7 +129,7 @@ class CoolBarTab extends Tab { Point radioSize = toolBar.computeSize(SWT.DEFAULT, SWT.DEFAULT);
radioSize = radioItem.computeSize(radioSize.x, radioSize.y);
radioItem.setSize(radioSize);
- radioItem.setMinimumWidth(item.getWidth());
+ radioItem.setMinimumSize(item.getWidth(), radioSize.y);
radioItem.addSelectionListener (new CoolItemDropDownSelectionListener());
/* create the check button toolbar */
@@ -151,7 +151,7 @@ class CoolBarTab extends Tab { Point checkSize = toolBar.computeSize(SWT.DEFAULT, SWT.DEFAULT);
checkSize = checkItem.computeSize(checkSize.x, checkSize.y);
checkItem.setSize(checkSize);
- checkItem.setMinimumWidth(item.getWidth());
+ checkItem.setMinimumSize(item.getWidth(), checkSize.y);
checkItem.addSelectionListener (new CoolItemDropDownSelectionListener());
/* if we have saved state, restore it */
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CoolBarTab.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CoolBarTab.java index fb857bb79a..34a0f5173e 100644 --- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CoolBarTab.java +++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CoolBarTab.java @@ -92,7 +92,7 @@ class CoolBarTab extends Tab { Point pushSize = toolBar.computeSize(SWT.DEFAULT, SWT.DEFAULT);
pushSize = pushItem.computeSize(pushSize.x, pushSize.y);
pushItem.setSize(pushSize);
- pushItem.setMinimumWidth(item.getWidth());
+ pushItem.setMinimumSize(item.getWidth(), pushSize.y);
pushItem.addSelectionListener (new CoolItemDropDownSelectionListener());
/* create the dropdown toolbar */
@@ -110,7 +110,7 @@ class CoolBarTab extends Tab { Point dropSize = toolBar.computeSize(SWT.DEFAULT, SWT.DEFAULT);
dropSize = dropDownItem.computeSize(dropSize.x, dropSize.y);
dropDownItem.setSize(dropSize);
- dropDownItem.setMinimumWidth(item.getWidth());
+ dropDownItem.setMinimumSize(item.getWidth(), dropSize.y);
dropDownItem.addSelectionListener (new CoolItemDropDownSelectionListener());
/* create the radio button toolbar */
@@ -129,7 +129,7 @@ class CoolBarTab extends Tab { Point radioSize = toolBar.computeSize(SWT.DEFAULT, SWT.DEFAULT);
radioSize = radioItem.computeSize(radioSize.x, radioSize.y);
radioItem.setSize(radioSize);
- radioItem.setMinimumWidth(item.getWidth());
+ radioItem.setMinimumSize(item.getWidth(), radioSize.y);
radioItem.addSelectionListener (new CoolItemDropDownSelectionListener());
/* create the check button toolbar */
@@ -151,7 +151,7 @@ class CoolBarTab extends Tab { Point checkSize = toolBar.computeSize(SWT.DEFAULT, SWT.DEFAULT);
checkSize = checkItem.computeSize(checkSize.x, checkSize.y);
checkItem.setSize(checkSize);
- checkItem.setMinimumWidth(item.getWidth());
+ checkItem.setMinimumSize(item.getWidth(), checkSize.y);
checkItem.addSelectionListener (new CoolItemDropDownSelectionListener());
/* if we have saved state, restore it */
|