锘??xml version="1.0" encoding="utf-8" standalone="yes"?>午夜av成人,在线观看网站免费入口在线观看国内,亚洲一区二区三区高清http://www.aygfsteel.com/hakuci/java Struts Hibernate Spring SWT Designerzh-cnThu, 19 Jun 2025 00:51:13 GMTThu, 19 Jun 2025 00:51:13 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_2 = new Text(shell, SWT.RIGHT);//鍙沖榻?br />         text_2.setText("123");
        text_2.setBounds(237, 88, 80, 25);

        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();
        }
    }

}




hakuci 2008-03-31 07:11 鍙戣〃璇勮
]]>
eclipse寮鍙慡WT Designer:ListTesthttp://www.aygfsteel.com/hakuci/archive/2008/03/31/189697.htmlhakucihakuciSun, 30 Mar 2008 23:10:00 GMThttp://www.aygfsteel.com/hakuci/archive/2008/03/31/189697.htmlhttp://www.aygfsteel.com/hakuci/comments/189697.htmlhttp://www.aygfsteel.com/hakuci/archive/2008/03/31/189697.html#Feedback0http://www.aygfsteel.com/hakuci/comments/commentRss/189697.htmlhttp://www.aygfsteel.com/hakuci/services/trackbacks/189697.html import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.List;
import org.eclipse.swt.widgets.Shell;


public class ListTest {

    private static List list_4;
    private static List list_3;
    private static List list_2;
    private static List list_1;
    private static List list;
    /**
     * Launch the application
     * @param args
     */
    public static void main(String[] args) {
        final Display display = Display.getDefault();
        final Shell shell = new Shell();
        shell.setSize(500, 375);
        shell.setText("SWT Application");
        //

        shell.open();

        list = new List(shell, SWT.NONE);       
        list.setBounds(86, 10, 100, 100);
        for(int i=1;i<=10;i++)
            list.add("絎?+i+"欏?);

        list_1 = new List(shell, SWT.BORDER);//甯﹁竟妗?br />         list_1.setBounds(311, 10, 100, 100);
        for(int i=1;i<=10;i++)
            list_1.add("絎?+i+"欏?);

        list_2 = new List(shell, SWT.V_SCROLL);
        list_2.setBounds(86, 127, 100, 100);
        for(int i=1;i<=10;i++)
            list_2.add("絎?+i+"欏?);

        list_3 = new List(shell, SWT.H_SCROLL);
        list_3.setBounds(311, 127, 100, 100);
        for(int i=1;i<=10;i++)
            list_3.add("絎?+i+"欏筬ffffffff       ");

        list_4 = new List(shell, SWT.MULTI);
        list_4.setBounds(86, 244, 100, 100);
        for(int i=1;i<=10;i++)
            list_4.add("絎?+i+"欏?);
        shell.layout();
        while (!shell.isDisposed()) {
            if (!display.readAndDispatch())
                display.sleep();
        }
    }

}




hakuci 2008-03-31 07:10 鍙戣〃璇勮
]]>
eclipse寮鍙慡WT Designer:ComboTesthttp://www.aygfsteel.com/hakuci/archive/2008/03/31/189696.htmlhakucihakuciSun, 30 Mar 2008 23:09:00 GMThttp://www.aygfsteel.com/hakuci/archive/2008/03/31/189696.htmlhttp://www.aygfsteel.com/hakuci/comments/189696.htmlhttp://www.aygfsteel.com/hakuci/archive/2008/03/31/189696.html#Feedback0http://www.aygfsteel.com/hakuci/comments/commentRss/189696.htmlhttp://www.aygfsteel.com/hakuci/services/trackbacks/189696.html import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;


public class ComboTest {

    private static Combo combo_2;
    private static Combo combo_1;
    private static Combo combo;
    /**
     * Launch the application
     * @param args
     */
    public static void main(String[] args) {
        final Display display = Display.getDefault();
        final Shell shell = new Shell();
        shell.setSize(461, 337);
        shell.setText("SWT Application");
        //

        shell.open();

        combo = new Combo(shell, SWT.NONE);
        combo.setBounds(123, 116, 141, 20);

        final Button button = new Button(shell, SWT.NONE);
        button.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                combo.removeAll();//鍏?娓呯┖
                for (int i=1; i<=10;i++)
                    combo.add("絎?+i+"瀛楃涓?);//娣誨姞瀛楃涓?br />                     combo.select(0);//璁劇疆絎竴綰т負褰撳墠欏?br />             }
        });
        button.setText("璁懼?);
        button.setBounds(105, 189, 48, 22);

        final Button button_1 = new Button(shell, SWT.NONE);
        button_1.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                //MessageDialog.openInformation(shell,null,combo.getText());
            }
        });
        button_1.setText("鍙栧?);
        button_1.setBounds(231, 189, 48, 22);

        combo_1 = new Combo(shell, SWT.READ_ONLY);//鍙
        combo_1.setBounds(313, 52, 52, 20);

        combo_2 = new Combo(shell, SWT.SIMPLE);//涓鐩存樉紺?br />         combo_2.setBounds(313, 164, 52, 20);
        shell.layout();
        while (!shell.isDisposed()) {
            if (!display.readAndDispatch())
                display.sleep();
        }
    }

}




hakuci 2008-03-31 07:09 鍙戣〃璇勮
]]>
eclipse寮鍙慡WT Designer:Buttonhttp://www.aygfsteel.com/hakuci/archive/2008/03/31/189695.htmlhakucihakuciSun, 30 Mar 2008 23:08:00 GMThttp://www.aygfsteel.com/hakuci/archive/2008/03/31/189695.htmlhttp://www.aygfsteel.com/hakuci/comments/189695.htmlhttp://www.aygfsteel.com/hakuci/archive/2008/03/31/189695.html#Feedback0http://www.aygfsteel.com/hakuci/comments/commentRss/189695.htmlhttp://www.aygfsteel.com/hakuci/services/trackbacks/189695.html import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;


public class ButtonTest {

    /**
     * Launch the application
     * @param args
     */
    public static void main(String[] args) {
        final Display display = Display.getDefault();
        final Shell shell = new Shell();
        shell.setSize(500, 375);
        shell.setText("SWT Application");
        //

        shell.open();

        final Button sButton = new Button(shell, SWT.NONE);
        sButton.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                System.exit(0);
            }
        });
        sButton.setText("exit");
        sButton.setBounds(128, 173, 85, 22);
        sButton.setToolTipText("鐐瑰嚮閫鍑?);
        shell.layout();
        while (!shell.isDisposed()) {
            if (!display.readAndDispatch())
                display.sleep();
        }
    }

}




hakuci 2008-03-31 07:08 鍙戣〃璇勮
]]>
鎵瑰鐞嗚緗甁ava鐜鍙橀噺/鍛戒護琛岃緗甁ava鐜鍙橀噺http://www.aygfsteel.com/hakuci/archive/2008/03/31/189694.htmlhakucihakuciSun, 30 Mar 2008 23:05:00 GMThttp://www.aygfsteel.com/hakuci/archive/2008/03/31/189694.htmlhttp://www.aygfsteel.com/hakuci/comments/189694.htmlhttp://www.aygfsteel.com/hakuci/archive/2008/03/31/189694.html#Feedback0http://www.aygfsteel.com/hakuci/comments/commentRss/189694.htmlhttp://www.aygfsteel.com/hakuci/services/trackbacks/189694.html
@echo off
IF EXIST %1\bin\java.exe (
rem 濡傝緭鍏ユ紜殑 Java2SDK 瀹夎鐩綍錛屽紑濮嬭緗幆澧冨彉閲?
@setx JAVA_HOME %1
@setx path %path%;%JAVA_HOME%\bin
@setx classpath %classpath%;.
@setx classpath %classpath%;%JAVA_HOME%\lib\tools.jar
@setx classpath %classpath%;%JAVA_HOME%\lib\dt.jar
@setx classpath %classpath%;%JAVA_HOME%\jre\lib\rt.jar
@echo on
@echo Java 2 SDK 鐜鍙傛暟璁劇疆瀹屾瘯錛屾甯擱鍑恒?
) ELSE (
IF "%1"=="" (
rem 濡傛病鏈夋彁渚涘畨瑁呯洰褰曪紝鎻愮ず涔嬪悗閫鍑?
@echo on
@echo 娌℃湁鎻愪緵 Java2SDK 鐨勫畨瑁呯洰褰?涓嶅仛浠諱綍璁劇疆錛岀幇鍦ㄩ鍑虹幆澧冨彉閲忚緗?
) ELSE (
rem 濡傛灉鎻愪緵闈炵┖鐨勫畨瑁呯洰褰曚絾娌℃湁bin\java.exe錛屽垯鎸囧畾鐨勭洰褰曚負閿欒鐨勭洰褰?
@echo on
@echo 闈炴硶鐨?Java2SDK 鐨勫畨瑁呯洰褰?涓嶅仛浠諱綍璁劇疆錛岀幇鍦ㄩ鍑虹幆澧冨彉閲忚緗?
)
)


------------------------------------------------------
cmd鍛戒護璁劇疆

鐢ㄤ簬鍦ㄥ懡浠よ閲屼復鏃惰緗幆澧冨彉閲忕殑鍛戒護錛?br /> SET PATH = c:\j2sdk1.4.0\bin

hakuci 2008-03-31 07:05 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 开封县| 潢川县| 寿光市| 邮箱| 莎车县| 固始县| 湖南省| 琼中| 安远县| 万盛区| 平乡县| 扶余县| 高安市| 广丰县| 老河口市| 陕西省| 家居| 班玛县| 自治县| 兴海县| 革吉县| 苍山县| 新乡市| 沁阳市| 呼伦贝尔市| 新余市| 军事| 江口县| 长治县| 甘德县| 密山市| 海伦市| 甘肃省| 武陟县| 永靖县| 中牟县| 荃湾区| 敦化市| 安陆市| 常宁市| 锦屏县|