📄 wizardpagetwo.java
字号:
/**
*@author: WangJinTao,MengQingChang2006
*/
package jfaceDialog;
import org.eclipse.jface.wizard.*;
import org.eclipse.swt.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.widgets.*;
public class WizardPageTwo extends WizardPage {
private Text textComment;
private GridData grid;
protected WizardPageTwo() {
super("");
setTitle("自我评价");
setMessage("请真实填写!!!");
setPageComplete(true);
}
public void createControl(Composite parent) {
Composite comp = new Composite(parent, SWT.NONE);
comp.setLayout(new GridLayout(1, false));
new Label(comp, SWT.NONE).setText("自我评价:");
textComment = new Text(comp, SWT.BORDER );
grid = new GridData(GridData.FILL_HORIZONTAL);
textComment.setLayoutData(grid);
setControl(comp);
}
public String getComment() {
return textComment.getText();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -