?? filechooserfilter.java
字號(hào):
package drawsmart.itsv.menuber;import javax.swing.filechooser.*;import java.io.*;/** * <p>Title: 文件選擇器接口實(shí)現(xiàn)</p> * <p>Description: 使用drawflow1.0的引擎</p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: 崔江</p> * @author not attributable * @version 1.0 */public class FileChooserFilter extends javax.swing.filechooser.FileFilter { private String ext=new String(""); private String Description=""; public FileChooserFilter(String Description,String ext) { this.ext=ext; this.Description=Description; } public boolean accept(File f) { String filename=f.getPath(); if(f.isDirectory()) return true; else if(filename.endsWith("."+ext)) return true; else return false; } public String getDescription() { return Description; }}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -