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);
          這是什么?  回復  更多評論
            

          主站蜘蛛池模板: 灵宝市| 辉县市| 沭阳县| 叶城县| 特克斯县| 商都县| 衡阳县| 武清区| 武穴市| 闻喜县| 福州市| 左云县| 平邑县| 陆川县| 纳雍县| 墨脱县| 平罗县| 伊春市| 锦州市| 胶州市| 宣城市| 普兰店市| 龙井市| 蒙阴县| 赤城县| 阿克陶县| 靖远县| 云安县| 高青县| 门源| 江川县| 兰考县| 永靖县| 玉林市| 芷江| 昌邑市| 盐源县| 迁西县| 同江市| 宝山区| 沛县|