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

          僅列出標(biāo)題  
          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          導(dǎo)航

          統(tǒng)計(jì)

          常用鏈接

          留言簿

          隨筆檔案

          搜索

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 天长市| 沈阳市| 南昌市| 夏邑县| 平原县| 公主岭市| 九龙坡区| 西华县| 延川县| 新竹县| 吉水县| 嵊泗县| 五华县| 顺昌县| 江山市| 阿城市| 凤城市| 大宁县| 紫阳县| 延津县| 江山市| 玛纳斯县| 延边| 澄江县| 惠安县| 罗江县| 嘉荫县| 昭觉县| 阿拉善盟| 武鸣县| 承德市| 靖安县| 汨罗市| 石柱| 凌海市| 淅川县| 岚皋县| 高雄县| 澜沧| 秀山| 蒲城县|