Package org.eclipse.swt.widgets

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


  progressData.left = new FormAttachment(0, 5);
  progressData.right = new FormAttachment(100, -5);
  progressData.bottom = new FormAttachment(100, -5);
  bar.setLayoutData(progressData);
 
  splash.pack();
  Rectangle splashRect = splash.getBounds();
  Rectangle displayRect = display.getBounds();
  int x = (displayRect.width - splashRect.width) / 2;
  int y = (displayRect.height - splashRect.height) / 2;
  splash.setLocation(x, y);
View Full Code Here

    gridLayout.marginTop = 10;
    gridLayout.numColumns = 2;
    newFolderShell.setLayout(gridLayout);
    newFolderShell.setText("Create New Folder");
    newFolderShell.setText(getText());
    newFolderShell.pack();


    text = new Text(newFolderShell, SWT.PASSWORD | SWT.BORDER);

    text.addKeyListener(new KeyAdapter() {
View Full Code Here


  public static void main(String[] args) {
    final Shell shell =
      new Shell();
    shell.pack();


    FTPPopUpDialog fTPPopUpDialog = new FTPPopUpDialog(shell);

    fTPPopUpDialog.open();
View Full Code Here

    gridLayout.marginTop = 10;
    gridLayout.numColumns = 2;
    newFolderShell.setLayout(gridLayout);
    newFolderShell.setText("Create New Folder");
    newFolderShell.setText(getText());
    newFolderShell.pack();

    /*if (obj instanceof FTPDialogListener)
      text = new Text(newFolderShell, SWT.PASSWORD | SWT.BORDER);
    else
    */
View Full Code Here

 

  public static void main(String[] args) {
    final Shell shell =
      new Shell();
    shell.pack();
   

    Dialog dialog = new Dialog(shell);
   
    dialog.open();
View Full Code Here

    gridLayout.marginTop = 10;
    gridLayout.numColumns = 2;
    newFolderShell.setLayout(gridLayout);
    newFolderShell.setText("Create New Folder");
    newFolderShell.setText(getText());
    newFolderShell.pack();

    if (obj instanceof FTPDialogListener)
      text = new Text(newFolderShell, SWT.PASSWORD | SWT.BORDER);
    else
      text = new Text(newFolderShell, SWT.BORDER);
View Full Code Here

 

  public static void main(String[] args) {
    final Shell shell =
      new Shell();
    shell.pack();
   

    Dialog dialog = new Dialog(shell);
   
    dialog.open();
View Full Code Here

      //Password nicht angegeben wurde, dann kommt ein Dialog, indem der Password geschrieben werden kann
      if(password.length() == 0 && !protocol.equalsIgnoreCase("sftp") ||
          (tryAgain && sosString.parseToString(password).length() == 0)) {
        Shell shell = new Shell();

        shell.pack();         
        FTPPopUpDialog fTPPopUpDialog = new FTPPopUpDialog(shell);
        fTPPopUpDialog.setText("Password");
        fTPPopUpDialog.open(this);
        while (!shell.isDisposed()) {
          if (!shell.getDisplay().readAndDispatch())
View Full Code Here

    gridLayout.marginTop = 10;
    gridLayout.numColumns = 2;
    newFolderShell.setLayout(gridLayout);
    newFolderShell.setText("Logical Operation");
   
    newFolderShell.pack();

   
    txtExpression = new Text(newFolderShell, SWT.MULTI | SWT.BORDER | SWT.WRAP);
   
    txtExpression.addKeyListener(new KeyAdapter() {
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.