hengheng123456789

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            297 Posts :: 68 Stories :: 144 Comments :: 0 Trackbacks
          顯示一個簡單的目錄對話框

          ?public static void main (String [] args) {
          ??Display display = new Display ();
          ??Shell shell = new Shell (display);
          ??shell.open ();
          ??DirectoryDialog dialog = new DirectoryDialog (shell);
          ??dialog.setFilterPath ("c:\\"); //Windows specific
          ??System.out.println ("RESULT=" + dialog.open ());
          ??while (!shell.isDisposed()) {
          ???if (!display.readAndDispatch ()) display.sleep ();
          ??}
          ??display.dispose ();
          ?}
          posted on 2006-11-07 15:13 哼哼 閱讀(2558) 評論(1)  編輯  收藏 所屬分類: SWT

          Feedback

          # re: SWT 目錄對話框(DirectoryDialog類)[未登錄] 2008-03-29 11:47 zq
          Display display = new Display ();
          Shell shell = new Shell (display);
          這是什么?  回復  更多評論
            

          主站蜘蛛池模板: 浮梁县| 武冈市| 惠来县| 武宣县| 宁蒗| 华容县| 山阳县| 丽水市| 樟树市| 获嘉县| 宣威市| 屯昌县| 萨嘎县| 梧州市| 崇左市| 衡东县| 项城市| 陵川县| 阿图什市| 瓦房店市| 绍兴县| 榆社县| 兴仁县| 苍南县| 邯郸市| 凯里市| 隆尧县| 鹤庆县| 保德县| 防城港市| 苏尼特左旗| 集安市| 广宁县| 运城市| 绩溪县| 丹阳市| 遂川县| 阳江市| 焦作市| 泗水县| 涡阳县|