Package org.eclipse.swt.widgets

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


                Point shellSize = shell.getSize();
                Point groupSize = optionComposite.computeSize( SWT.DEFAULT, SWT.DEFAULT, true );
                int newOptionGroupHeight = groupSize.y;
                shell.setSize( shellSize.x, shellSize.y + newOptionGroupHeight - optionGroupHeight );
                optionComposite.layout( true, true );
                shell.layout( true, true );
                optionGroupHeight = newOptionGroupHeight;

                validate();
            }
View Full Code Here


                Point shellSize = shell.getSize();
                Point groupSize = optionComposite.computeSize( SWT.DEFAULT, SWT.DEFAULT, true );
                int newOptionGroupHeight = groupSize.y;
                shell.setSize( shellSize.x, shellSize.y + newOptionGroupHeight - optionGroupHeight );
                optionComposite.layout( true, true );
                shell.layout( true, true );
                optionGroupHeight = newOptionGroupHeight;

                validate();
            }
View Full Code Here

                Point shellSize = shell.getSize();
                Point groupSize = langComposite.computeSize( SWT.DEFAULT, SWT.DEFAULT, true );
                int newLangGroupHeight = groupSize.y;
                shell.setSize( shellSize.x, shellSize.y + newLangGroupHeight - langGroupHeight );
                langComposite.layout( true, true );
                shell.layout( true, true );
                langGroupHeight = newLangGroupHeight;

                validate();
            }
View Full Code Here

                Point shellSize = shell.getSize();
                Point groupSize = langComposite.computeSize( SWT.DEFAULT, SWT.DEFAULT, true );
                int newLangGroupHeight = groupSize.y;
                shell.setSize( shellSize.x, shellSize.y + newLangGroupHeight - langGroupHeight );
                langComposite.layout( true, true );
                shell.layout( true, true );
                langGroupHeight = newLangGroupHeight;

                validate();
            }
View Full Code Here

            }
          });

          shell.setLocation(buttonChoose.toDisplay(0, 0));
          shell.setSize(UISettings.BUTTON_WIDTH * 3, 300);
          shell.layout();
          shell.open();
          Display display = getDisplay();
          while (!shell.isDisposed()) {
            if (!display.readAndDispatch()) {
              display.sleep();
View Full Code Here

    btnMake.setBounds(450, 42, 42, 27);
    btnMake.setText("Make");
    shlMyApp.setTabList(new Control[]{btnUpdateData, btnShowDataButton, btnStatDataButton, btnMakeDataButton, beginText, endText, btnNewButton, btnNewButton_1, btnFinal, btnStat, btnMake, combo, logText});
   
    shlMyApp.open();
    shlMyApp.layout();
    while (!shlMyApp.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
    }
View Full Code Here

        GridData data = new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL);
        data.grabExcessHorizontalSpace = true;
        data.grabExcessVerticalSpace = true;
        sc.setLayoutData(data);

        shell.layout();
        return shell;
    }

    public static void main(String args[]) {
        new SWTOpenGLDoubleScreenTest();
View Full Code Here

      GridData data = new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL);
      data.grabExcessHorizontalSpace = true;
      data.grabExcessVerticalSpace = true;
      sc.setLayoutData(data);

      shell.layout();
      while (!shell.isDisposed()) {
          if (!display.readAndDispatch())
            display.sleep();
        }
        display.dispose();
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.