Package org.eclipse.swt.widgets

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


    long t1 = System.currentTimeMillis();
    table.setItemCount(COUNT);
    long t2 = System.currentTimeMillis();
    System.out.println("Items: " + COUNT + ", Time: " + (t2 - t1) + " (ms) [page=" + PAGE_SIZE
        + "]");
    shell.layout();
    shell.pack();
    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch())
        display.sleep();
View Full Code Here


        Point size = inst.getSize();
        shell.setImage(image);
        shell.setText("XML Generator");
        shell.setToolTipText("Generates the XML file holding Unicodes");
        shell.setLayout(new FillLayout());
        shell.layout();
        if (size.x == 0 && size.y == 0) {
            inst.pack();
            shell.pack();
        } else {
            Rectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y);
View Full Code Here

            shell.setVisible(false);
        }

        shell.setSize(parent.getSize());
        shell.setLayout(new FillLayout());
        shell.layout();
       
        // Clean up the shell that was created above on dispose of the frame
        frame.addWindowListener(new WindowAdapter() {
            public void windowClosed(WindowEvent e) {
                if (!display.isDisposed()) {
View Full Code Here

/*
        updateSectionCompositesFirstColumnWidth(sectionComposites.iterator(),
                determineMaxWidth(sectionComposites.iterator()));
*/

        shell.layout();
        shell.pack();
    }

    /**
     *
 
View Full Code Here

      shell.setMaximized(true);
      shell.setMinimumSize(new org.eclipse.swt.graphics.Point(800, 600));
      shell.setImage(SWTResourceManager
          .getImage("resources/icons/iconmisc/cubos32.png"));
      shell.setText(".:: EasyBot ::.");
      shell.layout();
      if (size.x == 0 && size.y == 0) {
        inst.pack();
        shell.pack();
      } else {
        Rectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y);
View Full Code Here

      shell.setLayout(new FillLayout());
      shell.setMaximized(true);
      shell.setMinimumSize(new org.eclipse.swt.graphics.Point(800, 600));
      shell.setImage(SWTResourceManager.getImage("resources/icons/iconmisc/cubos32.png"));
      shell.setText(".:: EasyBot ::.");
      shell.layout();
      if(size.x == 0 && size.y == 0)
      {
        inst.pack();
        shell.pack();
      }
View Full Code Here

//         }
//      });

      shell.setSize(300, 300);
      shell.open();
      shell.layout();

      while (!shell.isDisposed())
      {
         if (!display.readAndDispatch())
         {
View Full Code Here

  public int createUI() {
    getContext().getProtocolWriter().appendHead( "tabris.UI", JsonValue.valueOf( true ) );
    Display display = new Display();
    Shell shell = createShell( display );
    createContent( shell );
    shell.layout( true );
    shell.open();
    if( getApplicationContext().getLifeCycleFactory().getLifeCycle() instanceof RWTLifeCycle ) {
      readAndDispatch( display, shell );
    }
    return 0;
View Full Code Here

        Display display = scrollingArea.getDisplay();
        Shell shell = scrollingArea.getShell();
        controls.clear();
        scrollingArea.dispose();
        createContent( display, shell, style );
        shell.layout( true, true );
      }
    } );
  }

  private Control addContentItem( final ScrollingComposite scrollableParent, String name ) {
View Full Code Here

    item0.setText("Item 0");
    item1.setText("Item 1");
    item0.setImage(UIImageResource.T.addContact16());
    item2.setImage(UIImageResource.T.foo());
   
    shell.layout();
    stripBar.layout();
    shell.open();
   
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
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.