testframe3.java

来自「A translator that converts Qt Designer U」· Java 代码 · 共 91 行

JAVA
91
字号
//
// This file was generated by the ui2swt tool (http://ui2swt.sourceforge.net/)
//
// Date:
//   Sun Jun 17 17:26:11 EST 2007
//
// Source:
//   file:/C:/Documents and Settings/James and Louisa/My Documents/Development/workspace/ui2swt/src/test/ui/TestFrame3.ui
//

package ui2swt.test;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;

public class TestFrame3 extends Composite
{
    public Composite frame4;
    public Label textLabel2;
    public Composite frame5;
    public Label textLabel3;

    public TestFrame3( Composite iParent, int iStyle )
    {
        super(iParent, iStyle);
        this.setSize(228,60);
        GridLayout l_gridLayout;
        l_gridLayout = new GridLayout();
        this.setLayout(l_gridLayout);
        l_gridLayout.numColumns = 2;
        l_gridLayout.marginLeft = 5;
        l_gridLayout.marginTop = 5;
        l_gridLayout.marginRight = 5;
        l_gridLayout.marginBottom = 5;
        l_gridLayout.horizontalSpacing = 5;
        l_gridLayout.verticalSpacing = 5;
        this.frame4 = new Composite(this,SWT.BORDER);
        l_gridLayout = new GridLayout();
        this.frame4.setLayout(l_gridLayout);
        l_gridLayout.numColumns = 1;
        l_gridLayout.marginLeft = 5;
        l_gridLayout.marginTop = 5;
        l_gridLayout.marginRight = 5;
        l_gridLayout.marginBottom = 5;
        l_gridLayout.horizontalSpacing = 5;
        l_gridLayout.verticalSpacing = 5;
        this.textLabel2 = new Label(this.frame4,SWT.NONE);
        this.textLabel2.setText("With border");
        GridData l_gridData;
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.CENTER;
        l_gridData.grabExcessVerticalSpace = true;
        this.textLabel2.setLayoutData(l_gridData);
        this.frame5 = new Composite(this,SWT.NONE);
        l_gridLayout = new GridLayout();
        this.frame5.setLayout(l_gridLayout);
        l_gridLayout.numColumns = 1;
        l_gridLayout.marginLeft = 5;
        l_gridLayout.marginTop = 5;
        l_gridLayout.marginRight = 5;
        l_gridLayout.marginBottom = 5;
        l_gridLayout.horizontalSpacing = 5;
        l_gridLayout.verticalSpacing = 5;
        this.textLabel3 = new Label(this.frame5,SWT.NONE);
        this.textLabel3.setText("Without border");
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.CENTER;
        l_gridData.grabExcessVerticalSpace = true;
        this.textLabel3.setLayoutData(l_gridData);
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.FILL;
        l_gridData.grabExcessVerticalSpace = true;
        this.frame4.setLayoutData(l_gridData);
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.FILL;
        l_gridData.grabExcessVerticalSpace = true;
        this.frame5.setLayoutData(l_gridData);
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?