📄 testgroupbox4.java
字号:
//
// This file was generated by the ui2swt tool (http://ui2swt.sourceforge.net/)
//
// Date:
// Sun Jun 17 17:26:17 EST 2007
//
// Source:
// file:/C:/Documents and Settings/James and Louisa/My Documents/Development/workspace/ui2swt/src/test/ui/TestGroupBox4.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 TestGroupBox4 extends Composite
{
public Group groupBox;
public Label label;
public Group groupBox_2;
public Label label_2;
public TestGroupBox4( Composite iParent, int iStyle )
{
super(iParent, iStyle);
this.setSize(357,125);
GridLayout l_gridLayout;
l_gridLayout = new GridLayout();
this.setLayout(l_gridLayout);
l_gridLayout.numColumns = 2;
l_gridLayout.marginLeft = 9;
l_gridLayout.marginTop = 9;
l_gridLayout.marginRight = 9;
l_gridLayout.marginBottom = 9;
l_gridLayout.horizontalSpacing = 6;
l_gridLayout.verticalSpacing = 6;
this.groupBox = new Group(this,SWT.NONE);
this.groupBox.setText("Normal");
l_gridLayout = new GridLayout();
this.groupBox.setLayout(l_gridLayout);
l_gridLayout.numColumns = 1;
l_gridLayout.marginLeft = 9;
l_gridLayout.marginTop = 9;
l_gridLayout.marginRight = 9;
l_gridLayout.marginBottom = 9;
l_gridLayout.horizontalSpacing = 6;
l_gridLayout.verticalSpacing = 6;
this.label = new Label(this.groupBox,SWT.NONE);
this.label.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.label.setLayoutData(l_gridData);
this.groupBox_2 = new Group(this,SWT.NONE);
this.groupBox_2.setText("Font");
this.groupBox_2.setFont(new Font(this.groupBox_2.getDisplay(),"MS Shell Dlg 2",16,SWT.BOLD|SWT.ITALIC));
l_gridLayout = new GridLayout();
this.groupBox_2.setLayout(l_gridLayout);
l_gridLayout.numColumns = 1;
l_gridLayout.marginLeft = 9;
l_gridLayout.marginTop = 9;
l_gridLayout.marginRight = 9;
l_gridLayout.marginBottom = 9;
l_gridLayout.horizontalSpacing = 6;
l_gridLayout.verticalSpacing = 6;
this.label_2 = new Label(this.groupBox_2,SWT.NONE);
this.label_2.setFont(new Font(this.label_2.getDisplay(),"MS Shell Dlg 2",16,SWT.BOLD|SWT.ITALIC));
this.label_2.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.label_2.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.groupBox.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.groupBox_2.setLayoutData(l_gridData);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -