Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.FillLayout


 
  public VivaldiVisualTest() {
    final Display display = new Display();
    Shell shell = new Shell(display);
    final VivaldiPanel panel = new VivaldiPanel(shell);
    shell.setLayout(new FillLayout());
    shell.setSize(800,800);
    shell.setText("Vivaldi Simulator");
    shell.open();
   
    Thread runner = new Thread("Viviladi Simulator") {
View Full Code Here


      return;
    }
    final Shell parentShell = Utils.findAnyShell();
    shell = ShellFactory.createShell(parentShell, SWT.BORDER
        | SWT.APPLICATION_MODAL | SWT.TITLE);
    shell.setLayout(new FillLayout());
    if (parentShell != null) {
      parentShell.setCursor(shell.getDisplay().getSystemCursor(SWT.CURSOR_WAIT));
    }

    shell.addTraverseListener(new TraverseListener() {
View Full Code Here

    GridData data;
   
    cWhatsNew = new Composite(shell, SWT.BORDER);
    data = new GridData(GridData.FILL_BOTH);
    cWhatsNew.setLayoutData(data);
    cWhatsNew.setLayout(new FillLayout());
   
    Button bClose = new Button(shell,SWT.PUSH);
    bClose.setText(MessageText.getString("Button.close"));
    data = new GridData();
    data.widthHint = 70;
View Full Code Here

   
    loadingPanel = new Composite(mainComposite,SWT.NONE);
    loadingPanel.setLayout(new FormLayout());
   
    listPanel = new Composite(mainComposite,SWT.NONE);
    listPanel.setLayout(new FillLayout());
   
    subscriptionsList = new Table(listPanel,SWT.V_SCROLL | SWT.SINGLE | SWT.FULL_SELECTION | SWT.VIRTUAL);
    subscriptionsList.setHeaderVisible(true);
   
    TableColumn name = new TableColumn(subscriptionsList,SWT.NONE);
View Full Code Here

        if (d == null)
          return;

        // We don't get mouse down notifications on trim or borders..
        toolTipShell = new Shell(composite.getShell(), SWT.ON_TOP);
        FillLayout f = new FillLayout();
        try {
          f.marginWidth = 3;
          f.marginHeight = 1;
        } catch (NoSuchFieldError e) {
          /* Ignore for Pre 3.0 SWT.. */
 
View Full Code Here

      lastMoveHadMouseDown = true;
    }
    cancelled = true;

    shell = new Shell(Utils.findAnyShell(), SWT.DOUBLE_BUFFERED | SWT.ON_TOP);
    shell.setLayout(new FillLayout());
    final Display display = shell.getDisplay();

    composite = new Composite(shell, SWT.DOUBLE_BUFFERED);

    final Point firstMousePos = display.getCursorLocation();
View Full Code Here

   
    title.setFont(titleFont);
   
    title.setText( MessageText.getString("devices.turnon.title") );
   
    FillLayout layout = new FillLayout();
   
    layout.marginHeight = 10;
   
    layout.marginWidth = 10;
   
View Full Code Here

        }
        event.required = true;
       
        if (browser.getUrl().contains("js.debug=1")) {
          Shell shell = ShellFactory.createMainShell(SWT.SHELL_TRIM);
          shell.setLayout(new FillLayout());
          Browser subBrowser = new Browser(shell,
              Utils.getInitialBrowserStyle(SWT.NONE));
          shell.open();
          event.browser = subBrowser;
        } else {
View Full Code Here

  }

  public static void main(String[] args) {
    Display display = Display.getDefault();
    Shell shell = new Shell(display, SWT.DIALOG_TRIM);
    shell.setLayout(new FillLayout());

    Composite c = new Composite(shell, SWT.BORDER);
    c.setLayout(new FillLayout());
    c.addPaintListener(new PaintListener() {
      public void paintControl(PaintEvent e) {
        e.gc.drawLine(0, 0, 100, 50);
      }
    });
View Full Code Here

      public void handleEvent(Event event) {
        UIUpdaterSWT.getInstance().removeUpdater(SideBarToolTips.this);
      }
    });
    FillLayout f = new FillLayout();
    try {
      f.marginWidth = 3;
      f.marginHeight = 1;
    } catch (NoSuchFieldError e) {
      /* Ignore for Pre 3.0 SWT.. */
 
View Full Code Here

TOP

Related Classes of org.eclipse.swt.layout.FillLayout

Copyright © 2018 www.massapicom. 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.