2009年7月2日

          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 爪哇島騎士 閱讀(117) | 評論 (0)編輯 收藏

          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 爪哇島騎士 閱讀(106) | 評論 (0)編輯 收藏

          <2009年7月>
          2829301234
          567891011
          12131415161718
          19202122232425
          2627282930311
          2345678

          導航

          統計

          常用鏈接

          留言簿

          隨筆檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 北川| 连州市| 历史| 景洪市| 洛宁县| 洪洞县| 伊宁市| 讷河市| 山丹县| 沭阳县| 福海县| 西华县| 富源县| 兴和县| 成武县| 大渡口区| 肥乡县| 闸北区| 寻乌县| 枣阳市| 安化县| 永春县| 贵溪市| 嘉荫县| 衢州市| 青浦区| 繁峙县| 盈江县| 武冈市| 肥东县| 潼关县| 唐河县| 卢湾区| 大理市| 惠安县| 乐业县| 庆城县| 临邑县| 镇巴县| 拜城县| 巨野县|