學用Java

          奇新Java控件---Java控件提供商和Java RIA, Web, J2ME解決方案開發商

          使用JComponentPack產品中的DefaultFileFilter

          How to use DefaultFileFilter in JComponentPack


          DefaultFileFilter provide a default file filter.

          It also provides some useful methods, for example:

          getExtensionNames()
          Return all extension of this file filter as an array.
          getExtensionName ()
          Return the extension of the parameter.
          It could accept 3 kinds of parameter, a File, a String, an URL.
          getNameWithoutExtension(String name)
          Returns the file name without extension, for example the file "readme.txt" will return "readme", include the absolute path.
          getPreferredExtensionName() 
          Returns the preferred extension of this file filter, actually is the first extension of your extensions. It equal this operation getExtensionNames()[0].

          It inherits from FileFilter, have two Constructors to create a instance of the FileFilter.

          DefaultFileFilter(String ext, String description)
          The first parameter is extension, the second parameter is description of extension.
          DefaultFileFilter(String[] ext, String description)
          The first parameter are extensions, the second parameter is description of extensions.


          posted on 2009-02-23 16:51 fralepg 閱讀(299) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          <2009年2月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          1234567

          導航

          統計

          公告

          JComponentPack 3.0正式發布 功能介紹

          JComponentPack 是一個基于Java SwingGUI類庫,一系列可視化的JavaBeans集合,它基于SwingMVC架構,是100%的純Java類庫,它包括20多個Swing 所沒有的控件

          試用版下載(點擊下載

          常用鏈接

          留言簿(1)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 蓬溪县| 绵竹市| 南漳县| 汽车| 凤凰县| 辽阳市| 余庆县| 开原市| 和平县| 柞水县| 凉山| 鹤壁市| 德庆县| 扎囊县| 右玉县| 平邑县| 沂水县| 东阿县| 长岭县| 湖南省| 丰城市| 黑龙江省| 明星| 长沙县| 长乐市| 乌审旗| 鹤庆县| 上饶县| 尖扎县| 闽清县| 墨竹工卡县| 甘泉县| 凤台县| 韶关市| 区。| 罗城| 通化县| 武冈市| 宜昌市| 汝城县| 洛阳市|