Package org.eclipse.swt.widgets

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


  public static void main(String argc[]) {
    UXFramework.getInstance().setup(new File("appData/ux.properties"));
    Display display = new Display();
    Shell sh = new Shell(display);
    sh.open();
   
    FindWindow win = new FindWindow(sh);
    win.open();
   
    while (!sh.isDisposed()) {
View Full Code Here


  public static void main(String[] args) {
    display = Display.getDefault();
    SimpleSWTExample simpleSWTExample = new SimpleSWTExample(display);
    Shell shell = simpleSWTExample.getShell();
    //shell.pack();
    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
    }
View Full Code Here

    CoatOfArmsViewer viewer = new CoatOfArmsViewer(shell, SWT.None);
    viewer.setCoatOfArms(coa);
    viewer.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

    shell.setText("Configure a coat of arms"); //$NON-NLS-1$
    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
    }
View Full Code Here

        widget.redraw();
        weather.step();
      }
    });

    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
View Full Code Here

    shell.setText("About - indic-keyboards");
    Image image = new Image(display, IndicKeyboards.workingDirectory
        + "/resources/trayicon.ico");
    shell.setImage(image);
    createContents(shell);
    shell.open();

    link1.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event event) {
        System.out.println("Selection: " + event.text);
        Program pBrowse = Program.findProgram(".html");
View Full Code Here

            shell.pack();
        } else {
            Rectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y);
            shell.setSize(shellBounds.width, shellBounds.height);
        }
        shell.open();

        while (!shell.isDisposed()) {
            if (!Display.getCurrent().readAndDispatch()) {
                Display.getCurrent().sleep();
            }
View Full Code Here

    currentLayout.setText(text);
    currentLayout.setSize(layoutImage.getBounds().width, layoutImage
        .getBounds().height + 30);
    currentLayout.setBackgroundImage(layoutImage);
    currentLayout.open();
    currentLayout.setActive();
    currentLayout.setFocus();
  }
}
View Full Code Here

    int y = (d.getClientArea().height - height) / 2;

    sh.setBounds(x, y - 25, width, height + 135);
    sh.setBackgroundImage(im);

    sh.open();

    ProgressBar pg = new ProgressBar(sh, SWT.SMOOTH);
    pg.setMinimum(0);
    pg.setMaximum(45);
    pg.setBounds(0, sh.getClientArea().height - 20,
View Full Code Here

    isometryWidget.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true,
        true));

    shell.setText("Map"); //$NON-NLS-1$
    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
    }
View Full Code Here

        shell.setDefaultButton(okButton);
        shell.pack();
        ViewUtility.centerChildInParentShell(parent, shell);
       
        shell.open();
    }
   
    private void addUser(final Shell parent)
    {
        final Shell shell = ViewUtility.createModalDialogShell(parent, "Add New User");
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.