com.eriksilkensen.sudoku
Class Java5FileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by com.eriksilkensen.sudoku.Java5FileFilter

public class Java5FileFilter
extends javax.swing.filechooser.FileFilter

Java5FileFilter is a custom FileFilter that a JFileChooser can use to filter out certain types of Files. This is a workaround for something that is provided in the new JDK 1.6 which only allows for one File extension to be visible to the user. This Filter only allows the .ser extension to be visible to the user.


Constructor Summary
Java5FileFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
           
 java.lang.String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Java5FileFilter

public Java5FileFilter()
Method Detail

accept

public boolean accept(java.io.File f)
Specified by:
accept in class javax.swing.filechooser.FileFilter

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class javax.swing.filechooser.FileFilter