學用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 閱讀(302) 評論(0)  編輯  收藏


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


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

          導航

          統計

          公告

          JComponentPack 3.0正式發布 功能介紹

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

          試用版下載(點擊下載

          常用鏈接

          留言簿(1)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 胶南市| 勃利县| 灌南县| 小金县| 大英县| 政和县| 闻喜县| 潢川县| 乌什县| 明光市| 镇江市| 正镶白旗| 嵩明县| 马龙县| 寻甸| 灌云县| 萝北县| 苏尼特左旗| 武冈市| 临清市| 泰宁县| 肇源县| 蒙自县| 开封县| 扶余县| 临城县| 广汉市| 双鸭山市| 阿勒泰市| 大理市| 二连浩特市| 藁城市| 汶上县| 黑水县| 芮城县| 永康市| 东山县| 怀化市| 榆中县| 榆社县| 张家港市|