學用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)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 通河县| 十堰市| 长宁区| 南投县| 丘北县| 沐川县| 阳曲县| 汝南县| 革吉县| 香港 | 四会市| 蒲城县| 绥滨县| 崇仁县| 巴东县| 墨玉县| 故城县| 兰州市| 通渭县| 邻水| 惠安县| 额尔古纳市| 汉阴县| 习水县| 台江县| 喜德县| 达孜县| 西峡县| 扬州市| 平谷区| 仙桃市| 栾城县| 远安县| 彰武县| 广东省| 延长县| 青浦区| 松阳县| 饶平县| 水城县| 芦山县|