锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲人成电影网站,成人在线免费看,78色国产精品http://www.aygfsteel.com/hakuci/java Struts Hibernate Spring SWT Designerzh-cnWed, 18 Jun 2025 15:23:50 GMTWed, 18 Jun 2025 15:23:50 GMT60eclipse寮鍙慡WT Designer:TextTesthttp://www.aygfsteel.com/hakuci/archive/2008/03/31/189698.htmlhakucihakuciSun, 30 Mar 2008 23:11:00 GMThttp://www.aygfsteel.com/hakuci/archive/2008/03/31/189698.htmlhttp://www.aygfsteel.com/hakuci/comments/189698.htmlhttp://www.aygfsteel.com/hakuci/archive/2008/03/31/189698.html#Feedback0http://www.aygfsteel.com/hakuci/comments/commentRss/189698.htmlhttp://www.aygfsteel.com/hakuci/services/trackbacks/189698.html
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
public class TextTest {
private static Text dingNiDeText_1;
private static Text dingNiDeText;
private static Text text_6;
private static Text text_5;
private static Text text_4;
private static Text text_3;
private static Text text_2;
private static Text text_1;
private static Text text;
/**
* Launch the application
* @param args
*/
public static void main(String[] args) {
final Display display = Display.getDefault();
final Shell shell = new Shell();
shell.setSize(502, 336);
shell.setText("SWT Application");
//
shell.open();
text = new Text(shell, SWT.BORDER);//SWT.BORDER
text.setText("123");
text.setBounds(237, 24, 80, 25);
text_1 = new Text(shell, SWT.CENTER);//灞呬腑
text_1.setText("123");
text_1.setBounds(237, 57, 80, 25);
final Label swtNoneLabel = new Label(shell, SWT.NONE);
swtNoneLabel.setText("swt none");
swtNoneLabel.setBounds(74, 27, 48, 12);
final Label label_1 = new Label(shell, SWT.NONE);
label_1.setText("鏂囧瓧鏍峰紡:灞呬腑");
label_1.setBounds(74, 57, 80, 12);
text_3 = new Text(shell, SWT.MULTI);
text_3.setText("ding ni de fei fei");//澶氳 杈撳叆 闇瑕佸洖杞?br />
text_3.setBounds(237, 119, 80, 25);
text_4 = new Text(shell, SWT.WRAP);//澶氳 杈撳叆 涓嶉渶瑕佸洖杞?br />
text_4.setText("ding ni de fei fei");
text_4.setBounds(237, 150, 80, 25);
text_5 = new Text(shell, SWT.PASSWORD);//瀵嗙爜
text_5.setText("123");
text_5.setBounds(237, 181, 80, 25);
text_6 = new Text(shell, SWT.READ_ONLY);//鍙
text_6.setText("123");
text_6.setBounds(237, 212, 80, 25);
dingNiDeText = new Text(shell,SWT.V_SCROLL);//鍨傜洿婊氬姩鏉?br />
dingNiDeText.setText("ding ni de fei fei");
dingNiDeText.setBounds(237, 236, 80, 25);
dingNiDeText_1 = new Text(shell, SWT.H_SCROLL);//姘村鉤婊氬姩鏉?br />
dingNiDeText_1.setText("ding ni de fei fei");
dingNiDeText_1.setBounds(237, 274, 80, 25);
shell.layout();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
}