1 50 package com.lowagie.tools.arguments; 51 52 import java.io.File; 53 54 import javax.swing.filechooser.FileFilter; 55 56 59 public class PdfFilter extends FileFilter { 60 61 64 public boolean accept(File f) { 65 if (f.isDirectory()) return true; 66 if (f.getName().endsWith(".pdf")) return true; 67 return false; 68 } 69 70 73 public String getDescription() { 74 return "*.pdf PDF files"; 75 } 76 77 } 78 | Popular Tags |