📄 testframe2.java
字号:
//
// This file was generated by the ui2swt tool (http://ui2swt.sourceforge.net/)
//
// Date:
// Sun Jun 17 17:26:10 EST 2007
//
// Source:
// file:/C:/Documents and Settings/James and Louisa/My Documents/Development/workspace/ui2swt/src/test/ui/TestFrame2.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 TestFrame2 extends Composite
{
public Composite Frame3;
public Label TextLabel2;
public Composite Frame4;
public Label TextLabel3;
public TestFrame2( Composite iParent, int iStyle )
{
super(iParent, iStyle);
this.setSize(197,57);
GridLayout l_gridLayout;
l_gridLayout = new GridLayout();
this.setLayout(l_gridLayout);
l_gridLayout.numColumns = 2;
l_gridLayout.marginLeft = 11;
l_gridLayout.marginTop = 11;
l_gridLayout.marginRight = 11;
l_gridLayout.marginBottom = 11;
l_gridLayout.horizontalSpacing = 6;
l_gridLayout.verticalSpacing = 6;
this.Frame3 = new Composite(this,SWT.BORDER);
l_gridLayout = new GridLayout();
this.Frame3.setLayout(l_gridLayout);
l_gridLayout.numColumns = 1;
l_gridLayout.marginLeft = 11;
l_gridLayout.marginTop = 11;
l_gridLayout.marginRight = 11;
l_gridLayout.marginBottom = 11;
l_gridLayout.horizontalSpacing = 6;
l_gridLayout.verticalSpacing = 6;
this.TextLabel2 = new Label(this.Frame3,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.Frame4 = new Composite(this,SWT.NONE);
l_gridLayout = new GridLayout();
this.Frame4.setLayout(l_gridLayout);
l_gridLayout.numColumns = 1;
l_gridLayout.marginLeft = 11;
l_gridLayout.marginTop = 11;
l_gridLayout.marginRight = 11;
l_gridLayout.marginBottom = 11;
l_gridLayout.horizontalSpacing = 6;
l_gridLayout.verticalSpacing = 6;
this.TextLabel3 = new Label(this.Frame4,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.Frame3.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);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -