<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆 - 303  文章 - 883  trackbacks - 0
    <2007年6月>
    272829303112
    3456789
    10111213141516
    17181920212223
    24252627282930
    1234567

    歡迎光臨! 
    閑聊 QQ:1074961813

    隨筆分類(357)

    我管理的群

    公共blog

    • n維空間
    • Email : java3d@126.com 群 : 12999758

    參與管理的論壇

    好友的blog

    我的其他blog

    朋友的網站

    搜索

    •  

    最新評論

    大家好我是尋覓;
    介紹個東西--SWT 給大家,不知道大家玩過沒?
    SWT性能遠遠勝過AWT和SWING,在Eclipse下的Designer比JB強得多,綜合起來比C#還強。

    Designer for Eclipse3.2.2
    http://downloads.instantiations.com/Designer/continuous/latest/Designer_v6.3.1_for_Eclipse3.2.zip
    如果該地址無法下載,請到官方網站下載

    環境配置參照:
    http://www.tkk7.com/lusm/archive/2007/06/22/125866.html

    包下載
    ttp://download.eclipse.org/eclipse/downloads/drops/R-3.2.2-200702121330/download.php?dropFile=swt-3.2.2-win32-win32-x86.zip

    例子在線
    http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/CatalogSWT-JFace-Eclipse.htm

    例子下載
    http://download.eclipse.org/eclipse/downloads/drops/R-3.2.2-200702121330/download.php?dropFile=eclipse-examples-3.2.2-win32.zip

    給大家兩個例子

    import org.eclipse.swt.SWT;
    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.Shell;
    import org.eclipse.swt.widgets.Text;
    import com.swtdesigner.SWTResourceManager;


    public class Myapp1 {

        
    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.setImage(SWTResourceManager.getImage(Myapp1.
    class"/jmapps/images/iconQuery.gif"));
            shell.setRegion(
    null);
            
            shell.setSize(
    375239);
            shell.setText(
    "新玩兒");
            
    //

            shell.open();

            
    final Button button = new Button(shell, SWT.NONE);
            shell.setDefaultButton(button);
            button.setImage(SWTResourceManager.getImage(Myapp1.
    class"/jmapps/images/audio.gif"));
            button.addSelectionListener(
    new SelectionAdapter() {
                
    public void widgetSelected(SelectionEvent e) {
                text.setText(
    "當然是沒問題咯。");
                }

            }
    );
            button.setText(
    "確定");
            button.setBounds(
    611449236);

            text 
    = new Text(shell, SWT.BORDER);
            text.setText(
    "Java寫GUI不行?");
            text.setFont(SWTResourceManager.getFont(
    ""20, SWT.NONE));
            text.setBackground(SWTResourceManager.getColor(
    0128192));
            text.setBounds(
    495026936);

            
    final Button button_1 = new Button(shell, SWT.NONE);
            button_1.addSelectionListener(
    new SelectionAdapter() {
                
    public void widgetSelected(SelectionEvent e) {
               text.setText(
    "Java寫GUI不行?");
                }

            }
    );
            button_1.setImage(SWTResourceManager.getImage(Myapp1.
    class"/jmapps/images/audio-disabled.gif"));
            button_1.setText(
    " 重來");
            button_1.setBounds(
    2141449236);
            shell.layout();
            
    while (!shell.isDisposed()) {
                
    if (!display.readAndDispatch())
                    display.sleep();
            }

        }


    }


    上面那個我寫著玩的試試而已






    地震讓大伙知道:居安思危,才是生存之道。
    posted on 2007-06-25 15:16 小尋 閱讀(1533) 評論(0)  編輯  收藏 所屬分類: j2se/j2ee/j2me
    主站蜘蛛池模板: 国产亚洲福利一区二区免费看| 亚洲av无码不卡久久| 免费人人潮人人爽一区二区| 成人奭片免费观看| 亚洲人成电影网站久久| 午夜福利不卡片在线播放免费| 亚洲电影免费观看| 免费成人激情视频| 亚洲1234区乱码| 成人影片麻豆国产影片免费观看| 久久精品国产99国产精品亚洲| 在人线av无码免费高潮喷水| 2020年亚洲天天爽天天噜| 成年女人18级毛片毛片免费观看| 亚洲资源最新版在线观看| 天天操夜夜操免费视频| 国产成人精品日本亚洲语音 | 久久精品国产亚洲AV果冻传媒| 免费黄色电影在线观看| 久久久久亚洲AV无码永不| 国产va免费精品观看精品| 亚洲色欲色欲www在线播放| 国产免费爽爽视频免费可以看| h视频在线观看免费完整版| 亚洲伊人久久大香线蕉啊| 在线免费观看中文字幕| 三级片免费观看久久| 亚洲AV无一区二区三区久久| 最近免费中文字幕mv电影| 亚洲Av无码国产一区二区| 国产精品xxxx国产喷水亚洲国产精品无码久久一区 | 亚洲日产无码中文字幕| 免费人成视频在线观看网站| 麻豆狠色伊人亚洲综合网站| 五月婷婷亚洲综合| 你懂的免费在线观看网站| 男人天堂2018亚洲男人天堂 | 狠狠综合久久综合88亚洲| 24小时免费看片| 免费无遮挡无码视频在线观看| 亚洲AV永久精品爱情岛论坛|