2009年8月11日

          tEST2

           

          import org.eclipse.swt.SWT;
          import org.eclipse.swt.widgets.Display;
          import org.eclipse.swt.widgets.Label;
          import org.eclipse.swt.widgets.Shell;
          public class FirstSWT {
              
          public static void main(String[] args) {
                  Display display 
          = new Display();
                     Shell shell 
          = new Shell(display);
                     Label label 
          = new Label(shell, SWT.CENTER);
                     label.setText(
          "Hello, World");
                     label.setBounds(shell.getClientArea());
                     shell.open();
                     shell.setText(
          "Hello World!");
                     
          while (!shell.isDisposed())
                     
          {
                      
          if (!display.readAndDispatch())
                      
          {
                       display.sleep();
                      }

                     }

                     display.dispose();
                     
              }

          }

          posted @ 2009-08-11 00:16 爪哇島騎士 閱讀(122) | 評(píng)論 (0)編輯 收藏

          2009年7月2日

          Test

          1     public static void main( String[] args )
          2     {
          3         int j = 12;
          4         forint i = 1; i <= 4; i++ )
          5         {
          6             System.out.println( i + j );
          7         }
          8 
          9     }System.out.println("Hello World");

          1 if (i=1)
          2{
          3system.out.println("1");
          4}

          5else
          6{
          7system.out.println("2");
          8}

          posted @ 2009-07-02 13:32 爪哇島騎士 閱讀(110) | 評(píng)論 (0)編輯 收藏

          僅列出標(biāo)題  
          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          導(dǎo)航

          統(tǒng)計(jì)

          常用鏈接

          留言簿

          隨筆檔案

          搜索

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 弥渡县| 余干县| 怀来县| 洱源县| 阿坝县| 公主岭市| 香河县| 临朐县| 平果县| 阜宁县| 海南省| 东乡| 临西县| 长寿区| 文山县| 尉犁县| 通渭县| 澄江县| 永仁县| 阳谷县| 滨海县| 和硕县| 新乡县| 阿尔山市| 朝阳市| 吉木乃县| 汉沽区| 南川市| 双辽市| 陆丰市| 阿拉尔市| 元阳县| 新建县| 西充县| 西宁市| 彩票| 鹤岗市| 武穴市| 轮台县| 特克斯县| 涞源县|