Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Button.moveBelow()


      if (shell.getDisplay().getDismissalAlignment() == SWT.RIGHT) {
        // make the default button the right-most button
        Button defaultButton = shell.getDefaultButton();
        if (defaultButton != null
            && isContained(buttonBar, defaultButton)) {
          defaultButton.moveBelow(null);
          ((Composite) buttonBar).layout();
        }
      }
    }
   
View Full Code Here


            super.createButtonsForButtonBar(parent);
            Button ok = getButton(IDialogConstants.OK_ID);
            ok.setText(Messages.JoinSessionWizard_yes);
            Button no = createButton(parent, IDialogConstants.CANCEL_ID, Messages.JoinSessionWizard_no,
                true);
            no.moveBelow(ok);
            no.setFocus();
        }
    }

    @Override
View Full Code Here

      Shell shell = getShell();
      if (shell != null) {
        Button defaultButton = shell.getDefaultButton();
        if (defaultButton != null
            && isContained(buttonBar, defaultButton)) {
          defaultButton.moveBelow(null);
        }
      }
    }
   
    super.initializeBounds();
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.