Source Code : Dir File Filter extends javax.swing.filechooser.FileFilter
Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com.
Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com.
Click Here or search from google with Libraries Name you get jar file related it
Dir File Filter extends javax.swing.filechooser.FileFilter
/**
*
DEScribe - A Discrete Experience Sampling cross platform application
Copyright (C) 2011
Sbastien Faure <sebastien.faure3@gmail.com>,
Bertrand Gros <gros.bertrand@gmail.com>,
Yannick Prie <yannick.prie@univ-lyon1.fr>.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
//package api.utils;
/**
* Class DirFileFilter.java
* @description Directory File Filter (for file chooser)
* @author Sbastien Faure <sebastien.faure3@gmail.com>
* @author Bertrand Gros <gros.bertrand@gmail.com>
* @version 2011-01-28
*/
public class DirFileFilter extends javax.swing.filechooser.FileFilter {
public final static String description = "Directory";
/** Creates a new instance of DirFileFilter */
public DirFileFilter() {
}
public boolean accept(java.io.File f) {
return f.isDirectory();
}
public String getDescription() {
return description;
}
}
Thank with us