Examples of pack()


Examples of org.eclipse.swt.custom.CTabFolder.pack()

                }
            });
        }
        tabFolder.setSelection(0);
        tabFolder.setSingle(true);
        tabFolder.pack();
    }

    private static void insertTextAtCaretPosition( StyledText text, String string ) {
        int caretPosition = text.getCaretOffset();
View Full Code Here

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

  protected void createButtonArea(Composite area) {       
        Button btnAdd = new Button(area, SWT.PUSH);
        btnAdd.setText("add");
        btnAdd.setLayoutData(GridDataFactory.copyData(_btnLayout));
        btnAdd.pack();
        _buttons.put(BUTTON_ADD, btnAdd);
       
        Button btnRemove = new Button(area, SWT.PUSH);
        btnRemove.setText("remove");
        btnRemove.setLayoutData(GridDataFactory.copyData(_btnLayout));
View Full Code Here

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

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

                provider,
                KeyStroke.getInstance("ARROW_DOWN"), null);
           
            adapter.setProposalAcceptanceStyle(ContentProposalAdapter.PROPOSAL_REPLACE);
           
            composite.pack();
            adapter.setPopupSize(new Point(text.getBounds().width, 100));
          } catch (ParseException e) {
            e.printStackTrace();
          }
        }
View Full Code Here

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

                fProviderControls.put(id, control);
            }
        }
        Dialog.applyDialogFont(control);
        fStackLayout.topControl = control;
        control.pack();
        fGroup.layout();
        fGroup.getParent().layout();

        prefs.initialize();
    }
View Full Code Here

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

    Point ps = item.computeSize(size.x, size.y);
    item.setPreferredSize(ps);
    item.setControl(ctrl);

    bar.pack();

    // OK, now the difference between the location of the CB and the
    // location of the
    Point bl = ctrl.getLocation();
    Point cl = bar.getLocation();
View Full Code Here

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

        };

        executeButton.addListener(SWT.Selection, clickListener);
        cancelButton.addListener(SWT.Selection, clickListener);

        optionGroup.pack();

        display(shell);
    }

}
View Full Code Here

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

        layout.numColumns = 2;
        page.setLayout(layout);

        Label comboLabel = new Label(page, SWT.LEFT);
        comboLabel.setText("Layer:");
        comboLabel.pack();
       
        listenStrategy(true);
       
        comboViewer = new ComboViewer(page, SWT.READ_ONLY);
        comboViewer.setContentProvider(new ArrayContentProvider());
View Full Code Here

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

            String[] items = new String[sc.getSize()];
            for (int i = 0; i < items.length; i++) {
                items[i] = "Gg";
            }
            list.setItems(items);
            list.pack();
            int height = list.getSize().y;
            list.setItems(oldItems);
            list.setSelection(oldSelection);
            return height;
        }
View Full Code Here

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

      public void handleEvent(Event event) {
        shell.dispose();
      }
    });

    shell.pack();
    Utils.createURLDropTarget(shell, url);
    shell.open();
  }
}
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.