Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Combo.pack()


        "100", "800", "600", "400", "200", "150", "100", "90", "80", "70",
        "60", "50", "40"}) {
      percents.add(text);
      zoomPercents.add(text);
    }
    percents.pack();
    zoomPercents.pack();

    apply.setText("Ok");
    applyZoom.setText("Ok");
    autoStretch.setText("Automatic stretch (a)");
View Full Code Here


    item.setToolTipText("SWT.SEPARATOR");
    if (comboChildButton.getSelection()) {
      Combo combo = new Combo(imageToolBar, SWT.NONE);
      combo.setItems(new String[] { "250", "500", "750" });
      combo.setText(combo.getItem(0));
      combo.pack();
      item.setWidth(combo.getSize().x);
      item.setControl(combo);
    }
    item = new ToolItem(imageToolBar, SWT.DROP_DOWN);
    item.setImage(instance.images[ControlExample.ciTarget]);
View Full Code Here

    item.setToolTipText("SWT.SEPARATOR");
    if (comboChildButton.getSelection()) {
      Combo combo = new Combo(textToolBar, SWT.NONE);
      combo.setItems(new String[] { "250", "500", "750" });
      combo.setText(combo.getItem(0));
      combo.pack();
      item.setWidth(combo.getSize().x);
      item.setControl(combo);
    }
    item = new ToolItem(textToolBar, SWT.DROP_DOWN);
    item.setText(ControlExample.getResourceString("Drop_Down"));
View Full Code Here

    item.setToolTipText("SWT.SEPARATOR");
    if (comboChildButton.getSelection()) {
      Combo combo = new Combo(imageTextToolBar, SWT.NONE);
      combo.setItems(new String[] { "250", "500", "750" });
      combo.setText(combo.getItem(0));
      combo.pack();
      item.setWidth(combo.getSize().x);
      item.setControl(combo);
    }
    item = new ToolItem(imageTextToolBar, SWT.DROP_DOWN);
    item.setImage(instance.images[ControlExample.ciTarget]);
View Full Code Here


         editor = new TableEditor(Plugin.getTab2().getClientTable());
         isRegEx_combo.add("String");
         isRegEx_combo.add("RegEx");
         isRegEx_combo.pack ();
         isRegEx_combo.setBackground(item.getBackground());


         editor.grabHorizontal = true;
         editor.setEditor (isRegEx_combo, item, 2);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.