Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.SashForm.addControlListener()


    final SashForm sash = new SashForm(form.getBody(), SWT.NULL);
    GridData gd = new GridData(GridData.FILL_BOTH);
    gd.widthHint = 10;
    gd.heightHint = 10;
    sash.setLayoutData(gd);
    sash.addControlListener(new ControlAdapter() {
      public void controlResized(ControlEvent e) {
        Point size = sash.getSize();
        if (size.x>size.y)
          sash.setOrientation(SWT.HORIZONTAL);
        else
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.