亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? examplefilefilter.java

?? 實現了Window的NotePad的功能
?? JAVA
字號:
/* * @(#)ExampleFileFilter.java	1.16 04/07/26 *  * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved. *  * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: *  * -Redistribution of source code must retain the above copyright notice, this *  list of conditions and the following disclaimer. *  * -Redistribution in binary form must reproduce the above copyright notice,  *  this list of conditions and the following disclaimer in the documentation *  and/or other materials provided with the distribution. *  * Neither the name of Sun Microsystems, Inc. or the names of contributors may  * be used to endorse or promote products derived from this software without  * specific prior written permission. *  * This software is provided "AS IS," without a warranty of any kind. ALL  * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN") * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST  * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,  * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY  * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,  * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. *  * You acknowledge that this software is not designed, licensed or intended * for use in the design, construction, operation or maintenance of any * nuclear facility. *//* * @(#)ExampleFileFilter.java	1.16 04/07/26 */package cqj.jar.com; import java.io.File;import java.util.Hashtable;import java.util.Enumeration;import javax.swing.*;import javax.swing.filechooser.*;/** * A convenience implementation of FileFilter that filters out * all files except for those type extensions that it knows about. * * Extensions are of the type ".foo", which is typically found on * Windows and Unix boxes, but not on Macinthosh. Case is ignored. * * Example - create a new filter that filerts out all files * but gif and jpg image files: * *     JFileChooser chooser = new JFileChooser(); *     ExampleFileFilter filter = new ExampleFileFilter( *                   new String{"gif", "jpg"}, "JPEG & GIF Images") *     chooser.addChoosableFileFilter(filter); *     chooser.showOpenDialog(this); * * @version 1.16 07/26/04 * @author Jeff Dinkins */public class ExampleFileFilter extends FileFilter {    private static String TYPE_UNKNOWN = "Type Unknown";    private static String HIDDEN_FILE = "Hidden File";    private Hashtable filters = null;    private String description = null;    private String fullDescription = null;    private boolean useExtensionsInDescription = true;    /**     * Creates a file filter. If no filters are added, then all     * files are accepted.     *     * @see #addExtension     */    public ExampleFileFilter() {	this.filters = new Hashtable();    }    /**     * Creates a file filter that accepts files with the given extension.     * Example: new ExampleFileFilter("jpg");     *     * @see #addExtension     */    public ExampleFileFilter(String extension) {	this(extension,null);    }    /**     * Creates a file filter that accepts the given file type.     * Example: new ExampleFileFilter("jpg", "JPEG Image Images");     *     * Note that the "." before the extension is not needed. If     * provided, it will be ignored.     *     * @see #addExtension     */    public ExampleFileFilter(String extension, String description) {	this();	if(extension!=null) addExtension(extension); 	if(description!=null) setDescription(description);    }    /**     * Creates a file filter from the given string array.     * Example: new ExampleFileFilter(String {"gif", "jpg"});     *     * Note that the "." before the extension is not needed adn     * will be ignored.     *     * @see #addExtension     */    public ExampleFileFilter(String[] filters) {	this(filters, null);    }    /**     * Creates a file filter from the given string array and description.     * Example: new ExampleFileFilter(String {"gif", "jpg"}, "Gif and JPG Images");     *     * Note that the "." before the extension is not needed and will be ignored.     *     * @see #addExtension     */    public ExampleFileFilter(String[] filters, String description) {	this();	for (int i = 0; i < filters.length; i++) {	    // add filters one by one	    addExtension(filters[i]);	} 	if(description!=null) setDescription(description);    }    /**     * Return true if this file should be shown in the directory pane,     * false if it shouldn't.     *     * Files that begin with "." are ignored.     *     * @see #getExtension     * @see FileFilter#accepts     */    public boolean accept(File f) {	if(f != null) {	    if(f.isDirectory()) {		return true;	    }	    String extension = getExtension(f);	    if(extension != null && filters.get(getExtension(f)) != null) {		return true;	    };	}	return false;    }    /**     * Return the extension portion of the file's name .     *     * @see #getExtension     * @see FileFilter#accept     */     public String getExtension(File f) {	if(f != null) {	    String filename = f.getName();	    int i = filename.lastIndexOf('.');	    if(i>0 && i<filename.length()-1) {		return filename.substring(i+1).toLowerCase();	    };	}	return null;    }    /**     * Adds a filetype "dot" extension to filter against.     *     * For example: the following code will create a filter that filters     * out all files except those that end in ".jpg" and ".tif":     *     *   ExampleFileFilter filter = new ExampleFileFilter();     *   filter.addExtension("jpg");     *   filter.addExtension("tif");     *     * Note that the "." before the extension is not needed and will be ignored.     */    public void addExtension(String extension) {	if(filters == null) {	    filters = new Hashtable(5);	}	filters.put(extension.toLowerCase(), this);	fullDescription = null;    }    /**     * Returns the human readable description of this filter. For     * example: "JPEG and GIF Image Files (*.jpg, *.gif)"     *     * @see setDescription     * @see setExtensionListInDescription     * @see isExtensionListInDescription     * @see FileFilter#getDescription     */    public String getDescription() {	if(fullDescription == null) {	    if(description == null || isExtensionListInDescription()) { 		fullDescription = description==null ? "(" : description + " (";		// build the description from the extension list		Enumeration extensions = filters.keys();		if(extensions != null) {		    fullDescription += "." + (String) extensions.nextElement();		    while (extensions.hasMoreElements()) {			fullDescription += ", ." + (String) extensions.nextElement();		    }		}		fullDescription += ")";	    } else {		fullDescription = description;	    }	}	return fullDescription;    }    /**     * Sets the human readable description of this filter. For     * example: filter.setDescription("Gif and JPG Images");     *     * @see setDescription     * @see setExtensionListInDescription     * @see isExtensionListInDescription     */    public void setDescription(String description) {	this.description = description;	fullDescription = null;    }    /**     * Determines whether the extension list (.jpg, .gif, etc) should     * show up in the human readable description.     *     * Only relevent if a description was provided in the constructor     * or using setDescription();     *     * @see getDescription     * @see setDescription     * @see isExtensionListInDescription     */    public void setExtensionListInDescription(boolean b) {	useExtensionsInDescription = b;	fullDescription = null;    }    /**     * Returns whether the extension list (.jpg, .gif, etc) should     * show up in the human readable description.     *     * Only relevent if a description was provided in the constructor     * or using setDescription();     *     * @see getDescription     * @see setDescription     * @see setExtensionListInDescription     */    public boolean isExtensionListInDescription() {	return useExtensionsInDescription;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲综合免费观看高清完整版| 亚洲视频一区在线| 韩国理伦片一区二区三区在线播放| 日韩一卡二卡三卡四卡| 麻豆精品一二三| 久久久久高清精品| 成人午夜免费av| 亚洲六月丁香色婷婷综合久久| 欧美色窝79yyyycom| 奇米精品一区二区三区在线观看 | 欧美国产日本韩| 成人黄色在线看| 亚洲在线观看免费| 欧美va天堂va视频va在线| 国产精品亚洲视频| 亚洲欧美日韩国产综合在线| 欧美日韩高清影院| 国产精品伊人色| 亚洲久本草在线中文字幕| 4438x亚洲最大成人网| 国精产品一区一区三区mba桃花| 国产欧美一二三区| 在线观看免费亚洲| 久久99国内精品| 国产精品传媒入口麻豆| 欧美喷水一区二区| 国产精品资源在线观看| 亚洲免费观看在线观看| 欧美一级精品大片| 成人av网站在线观看| 午夜电影久久久| 久久婷婷国产综合国色天香| 色偷偷成人一区二区三区91| 麻豆精品在线播放| 亚洲色图都市小说| 欧美大胆人体bbbb| 91丝袜呻吟高潮美腿白嫩在线观看| 首页国产欧美久久| 国产精品入口麻豆九色| 欧美另类videos死尸| 国产成人激情av| 亚洲成人av电影| 国产欧美日韩精品一区| 欧美精品在线视频| 成人国产免费视频| 奇米影视一区二区三区| 综合久久久久久| 日韩欧美高清一区| 色婷婷亚洲精品| 精品一区二区久久久| 一区二区三区在线观看网站| 精品福利二区三区| 欧美性大战久久久久久久蜜臀 | 精品中文字幕一区二区小辣椒| 中文字幕一区二区三区不卡在线| 日韩视频免费直播| 色婷婷综合视频在线观看| 国产精品一区在线观看乱码| 亚洲国产人成综合网站| 中文欧美字幕免费| 日韩欧美国产系列| 欧美在线观看一区二区| 高清shemale亚洲人妖| 日本人妖一区二区| 亚洲精品国产精品乱码不99| 久久久午夜精品理论片中文字幕| 欧美日本乱大交xxxxx| 97久久人人超碰| 国产一区二区按摩在线观看| 丝袜美腿亚洲一区二区图片| 一色桃子久久精品亚洲| 久久精品在线免费观看| 欧美一激情一区二区三区| 91黄色免费网站| 波多野洁衣一区| 国产精品一区二区久激情瑜伽| 全部av―极品视觉盛宴亚洲| 亚洲一区二区影院| 国产精品毛片a∨一区二区三区| 精品电影一区二区| 欧美一三区三区四区免费在线看| 欧美中文字幕一区| 91在线丨porny丨国产| 国产成人啪免费观看软件| 久久成人麻豆午夜电影| 日日欢夜夜爽一区| 亚洲国产精品一区二区www在线| 中文字幕中文字幕一区| 国产日产欧美一区| 久久久午夜精品理论片中文字幕| 欧美刺激午夜性久久久久久久| 8v天堂国产在线一区二区| 欧美午夜精品久久久| 91成人免费网站| 日本一区二区三区四区| 精品少妇一区二区三区日产乱码| 欧美丰满美乳xxx高潮www| 欧美日韩综合在线免费观看| 91国偷自产一区二区三区观看| 99久久精品情趣| 成人aaaa免费全部观看| 成人污视频在线观看| 粉嫩aⅴ一区二区三区四区五区| 国产精品综合一区二区| 国产福利精品导航| 国产福利一区二区三区| 国产精品18久久久久久久久久久久| 日本欧美大码aⅴ在线播放| 欧美精品日日鲁夜夜添| 在线观看日韩av先锋影音电影院| 91啪亚洲精品| 色悠久久久久综合欧美99| 色一情一乱一乱一91av| 日本高清不卡在线观看| 欧洲中文字幕精品| 欧美日韩亚洲综合在线| 欧美人体做爰大胆视频| 7777精品伊人久久久大香线蕉最新版| 欧美日韩国产a| 日韩一级片在线观看| 欧美成人一区二区三区| 国产亚洲综合性久久久影院| 国产日韩欧美在线一区| 国产精品视频免费| 亚洲欧美一区二区视频| 一区二区三区在线观看动漫| 亚洲午夜电影在线| 日韩影视精彩在线| 九色综合狠狠综合久久| 国产成人亚洲精品青草天美| 99精品视频免费在线观看| 91国产丝袜在线播放| 欧美另类一区二区三区| 精品久久久久一区| 国产精品欧美经典| 亚洲一区二区免费视频| 日本午夜一区二区| 国产一区二区导航在线播放| av午夜一区麻豆| 欧美三级电影一区| 欧美一区二区久久久| 久久先锋影音av鲁色资源网| 国产精品久久久久久久久免费樱桃| 亚洲免费成人av| 日韩精品一级中文字幕精品视频免费观看 | 51精品国自产在线| 制服丝袜亚洲网站| 亚洲精品一区二区三区99| 日本一区二区成人| 亚洲一线二线三线视频| 日韩电影一区二区三区四区| 国产美女在线观看一区| 成人一区二区在线观看| 欧美丝袜丝nylons| 久久综合成人精品亚洲另类欧美| 亚洲婷婷国产精品电影人久久| 亚洲超碰97人人做人人爱| 久久精品国产精品亚洲红杏| 成人免费视频视频| 欧美三级韩国三级日本三斤 | 午夜日韩在线电影| 青青国产91久久久久久| 国产jizzjizz一区二区| 欧美在线观看禁18| 精品国产乱码久久久久久夜甘婷婷| 中文字幕中文字幕在线一区| 日韩国产在线一| 成人午夜电影小说| 777欧美精品| 最新中文字幕一区二区三区| 日韩成人av影视| 波多野结衣欧美| 日韩欧美视频在线| 亚洲人成小说网站色在线| 另类小说欧美激情| 色噜噜夜夜夜综合网| 精品三级在线观看| 亚洲欧洲日产国码二区| 老司机精品视频线观看86| 91亚洲精品一区二区乱码| 精品日产卡一卡二卡麻豆| 亚洲精品国产视频| 国产精品99久久久久久有的能看| 欧美亚洲动漫另类| 国产欧美精品国产国产专区| 日日骚欧美日韩| 亚洲三级视频在线观看| 免费视频最近日韩| 91一区二区三区在线观看| 精品sm捆绑视频| 亚洲国产视频在线| av在线不卡免费看| 精品福利一区二区三区| 五月婷婷激情综合| 99精品黄色片免费大全| 欧美精品一区二区三区很污很色的 | 捆绑调教一区二区三区| 色94色欧美sute亚洲13| 久久老女人爱爱| 毛片av一区二区|