Package org.eclipse.swt.widgets

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


    }

    /* Pack Shell and expect enough room to fit the Control */
    else {
      int currentWidth = shell.getSize().x;
      Point desiredSize = shell.computeSize(currentWidth, SWT.DEFAULT);
      if (desiredSize.y > shell.getSize().y)
        shell.setSize(currentWidth, desiredSize.y);
      else
        shell.layout(true, true);
    }
View Full Code Here


          if(event.location != null)
            shell.setLocation(event.location);
          if(event.size != null)
          {
            Point size = event.size;
            shell.setSize(shell.computeSize(size.x, size.y));
          }
          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.