| version 1.1 | version 1.2 |
|---|
| |
| // Copyright (c) 2001-2002 Board of Trustees of the University of Illinois | // Copyright (c) 2001-2002 Board of Trustees of the University of Illinois |
| // Theoretical Biophysics Group http://www.ks.uiuc.edu/ | // Theoretical Biophysics Group http://www.ks.uiuc.edu/ |
| // | // |
| // $Id: PdbFilter.java,v 1.1 2002/07/09 17:49:57 mbach Exp $ | // $Id: PdbFilter.java,v 1.2 2002/10/18 16:03:11 mbach Exp $ |
| // | // |
| | |
| | |
| /** FileFilter class to filter PDB and WRL files for the JFileChooser */ | /** FileFilter class to filter PDB (and WRL) files for the JFileChooser */ |
| public class PdbFilter extends javax.swing.filechooser.FileFilter { | public class PdbFilter extends javax.swing.filechooser.FileFilter { |
| public boolean accept(java.io.File f) { | public boolean accept(java.io.File f) { |
| if(f.isDirectory()) { | if(f.isDirectory()) { |
| return true; | return true; |
| } | } |
| | |
| if(f.getName().endsWith(".pdb") || | if(f.getName().endsWith(".pdb") |
| f.getName().endsWith(".wrl")) { | //|| f.getName().endsWith(".wrl") |
| | ) { |
| return true; | return true; |
| } | } |
| | |
| |
| } | } |
| | |
| public String getDescription() { | public String getDescription() { |
| return ("PDB and VRML files"); | //return ("PDB and VRML files"); |
| | return ("PDB Files"); |
| } | } |
| } | } |