學(xué)用Java

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

          使用JComponentPack產(chǎn)品中的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) 評(píng)論(0)  編輯  收藏


          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          <2009年2月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          1234567

          導(dǎo)航

          統(tǒng)計(jì)

          公告

          JComponentPack 3.0正式發(fā)布 功能介紹

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

          試用版下載(點(diǎn)擊下載

          常用鏈接

          留言簿(1)

          隨筆檔案

          文章檔案

          搜索

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 拉萨市| 乌什县| 扶风县| 北流市| 寿宁县| 西和县| 杭州市| 漳州市| 湖口县| 蓬溪县| 宽甸| 甘泉县| 河池市| 革吉县| 株洲市| 靖西县| 调兵山市| 浦东新区| 杭锦后旗| 通辽市| 洛川县| 滁州市| 察隅县| 黄冈市| 隆尧县| 神农架林区| 集贤县| 措美县| 正镶白旗| 湘阴县| 巫溪县| 太保市| 宜春市| 通渭县| 苏尼特右旗| 古浪县| 隆林| 策勒县| 乌鲁木齐县| 井冈山市| 新蔡县|