testgroupbox3.java

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

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

package ui2swt.test;

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

public class TestGroupBox3 extends Composite
{
    public Group groupBox1;
    public Label textLabel7;
    public Group groupBox2;
    public Label textLabel8;

    public TestGroupBox3( Composite iParent, int iStyle )
    {
        super(iParent, iStyle);
        this.setSize(371,93);
        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.groupBox1 = new Group(this,SWT.NONE);
        this.groupBox1.setText("Normal");
        l_gridLayout = new GridLayout();
        this.groupBox1.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.textLabel7 = new Label(this.groupBox1,SWT.NONE);
        this.textLabel7.setText("The quick brown...");
        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.textLabel7.setLayoutData(l_gridData);
        this.groupBox2 = new Group(this,SWT.NONE);
        this.groupBox2.setText("Font");
        this.groupBox2.setFont(new Font(this.groupBox2.getDisplay(),"TextFont8",16,SWT.BOLD|SWT.ITALIC));
        l_gridLayout = new GridLayout();
        this.groupBox2.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.textLabel8 = new Label(this.groupBox2,SWT.NONE);
        this.textLabel8.setFont(new Font(this.textLabel8.getDisplay(),"TextFont8",16,SWT.BOLD|SWT.ITALIC));
        this.textLabel8.setText("The quick brown...");
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.CENTER;
        l_gridData.grabExcessVerticalSpace = true;
        this.textLabel8.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.groupBox1.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.groupBox2.setLayoutData(l_gridData);
    }
}

⌨️ 快捷键说明

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