FiltroEstensioniCSV.java import java.io.File; import javax.swing ...

snottybugbearSoftware and s/w Development

Nov 3, 2013 (3 years and 9 months ago)

91 views

FiltroEstensioniCSV.java
import java.io.File;
import javax.swing.filechooser.FileFilter;
public class FiltroEstensioniCSV extends FileFilter
{
@Override
public boolean accept(File file) {
// TODO Auto-generated method stub
if(file.getName().endsWith(".csv")
|| file.isDirectory())
return true;
return false;
}
@Override
public String getDescription() {
// TODO Auto-generated method stub
return "Rubrica (csv)";
}

}
Page 1