Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.FormLayout


 
  protected Label label;
 
  public UXLabeledWidget(Composite parent) {
    super(parent);
    container.setLayout(new FormLayout());
    label = new Label(container, SWT.LEFT);
   
    FormData data = new FormData();
    data.top = new FormAttachment(0);
    data.left = new FormAttachment(0);
View Full Code Here


  public static void enableLayout(Composite c, int vMargin, int hMargin) {
    enableLayout(c, vMargin, hMargin, vMargin, hMargin);
 
 
  public static void enableLayout(Composite c, int t, int r, int b, int l) {
    FormLayout layout = new FormLayout();
    layout.marginTop = t;
    layout.marginRight = r;
    layout.marginBottom = b;
    layout.marginLeft = l;
    c.setLayout(layout);
View Full Code Here

  public Composite getContainer() {
    return container;
  }
 
  protected void enableLayout() {
    FormLayout layout = new FormLayout();
    layout.marginTop = layout.marginBottom = layout.marginLeft = layout.marginRight = 2;
    container.setLayout(layout);
  }
View Full Code Here

   * Runs the application
   */
  public void showAboutUs() {

    Shell shell = new Shell(display);
    shell.setLayout(new FormLayout());
    shell.setSize(410, 500);
    int x = (display.getClientArea().width) / 2;
    int y = (display.getClientArea().height) / 2;
    shell.setLocation(x - 150, y - 220);
    shell.setText("About - indic-keyboards");
View Full Code Here

     * Initializes the GUI.
     */
    private void initGUI() {
        try {
            this.setBackground(SWTResourceManager.getColor(117, 117, 221));
            FormLayout thisLayout = new FormLayout();
            this.setLayout(thisLayout);
            this.setSize(714, 434);
            {
                label1 = new Label(this, SWT.CENTER);
                label1.setText("Replace each of these characters with their\ncorresponding Unicodes and press OK");
View Full Code Here

     */
    public void createPartControl( Composite parent ) {
        createActions();
        createToolBar();

        parent.setLayout(new FormLayout());

        FormData layout;
        layout = new FormData();
        layout.top = new FormAttachment(null, 0);
        layout.left = new FormAttachment(null, 1);
View Full Code Here

        mapviewer.setSelectionProvider(selectionProvider);
    }

    @Override
    public void createPartControl( Composite parent ) {
        parent.setLayout(new FormLayout());

        // create two maps
        final Map overviewmap = (Map) ProjectFactory.eINSTANCE.createMap();
        final Map mainmap = (Map) ProjectFactory.eINSTANCE.createMap();
View Full Code Here

        ShutdownTaskList.instance().addPreShutdownTask(shutdownTask);

        composite = new Composite(parent, SWT.NO_BACKGROUND);

        composite.setLayout(new FormLayout());
        composite.setFont(parent.getFont());
        setPartName(getMap().getName());

        setTitleToolTip(Messages.MapEditor_titleToolTip);
        setTitleImage(ProjectUIPlugin.getDefault().getImage(ISharedImages.MAP_OBJ));
View Full Code Here

        // +
        // +label+text+bbox+
        // +
        // contents
        // +
        FormLayout layout = new FormLayout();
        layout.marginHeight = 0;
        layout.marginWidth = 0;
        layout.spacing = 0;
        aParent.setLayout(layout);
View Full Code Here

        }

        @Override
        protected Control create( Composite parent ) {
            Composite root = new Composite(parent, SWT.NONE);
            root.setLayout(new FormLayout());

            Label label = new Label(root, SWT.LEFT);
            label.setText(Messages.ConnectionErrorPage_message);

            ListViewer listViewer = new ListViewer(root);
View Full Code Here

TOP

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

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.