1 2 23 package org.enhydra.tool.common; 24 25 27 import javax.swing.filechooser.*; 28 import java.io.*; 29 import java.util.ResourceBundle ; 30 31 39 public class DirectoryFilter extends javax.swing.filechooser.FileFilter { 40 static ResourceBundle res = 41 ResourceBundle.getBundle ("org.enhydra.tool.common.Res"); 42 43 46 public DirectoryFilter (){} 47 48 59 public boolean accept (File f) { 60 return f.isDirectory (); 61 } 62 63 70 public String getDescription () { 71 return res.getString ("Directories"); 72 } 73 74 } 75 76 | Popular Tags |