📄 testtextbrowser3.java
字号:
//
// This file was generated by the ui2swt tool (http://ui2swt.sourceforge.net/)
//
// Date:
// Sun Jun 17 17:26:51 EST 2007
//
// Source:
// file:/C:/Documents and Settings/James and Louisa/My Documents/Development/workspace/ui2swt/src/test/ui/TestTextBrowser3.ui
//
package ui2swt.test;
import org.eclipse.swt.SWT;
import org.eclipse.swt.browser.Browser;
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 TestTextBrowser3 extends Composite
{
public Label textLabel19;
public Label textLabel20;
public Browser textBrowser2;
public Browser textBrowser3;
public TestTextBrowser3( Composite iParent, int iStyle )
{
super(iParent, iStyle);
this.setSize(412,172);
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.textLabel19 = new Label(this,SWT.NONE);
this.textLabel19.setText("Normal:");
this.textLabel20 = new Label(this,SWT.NONE);
this.textLabel20.setText("No Frame:");
this.textBrowser2 = new Browser(this,SWT.BORDER);
this.textBrowser2.setText("The quick brown fox jumped over the lazy dog.");
this.textBrowser3 = new Browser(this,SWT.NONE);
this.textBrowser3.setText("The quick brown fox jumped over the lazy dog.");
GridData l_gridData;
l_gridData = new GridData();
l_gridData.horizontalAlignment = GridData.FILL;
l_gridData.grabExcessHorizontalSpace = true;
l_gridData.verticalAlignment = GridData.CENTER;
l_gridData.grabExcessVerticalSpace = false;
this.textLabel19.setLayoutData(l_gridData);
l_gridData = new GridData();
l_gridData.horizontalAlignment = GridData.FILL;
l_gridData.grabExcessHorizontalSpace = true;
l_gridData.verticalAlignment = GridData.CENTER;
l_gridData.grabExcessVerticalSpace = false;
this.textLabel20.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.textBrowser2.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.textBrowser3.setLayoutData(l_gridData);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -