Class TXTFilter

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended byTXTFilter

public class TXTFilter
extends javax.swing.filechooser.FileFilter

This class provides a filter to Load dialogs so that only .txt files can be loaded. This is useful for loading custom dictionaries so that we can restrict the user's choice of files.

Version:
2.0
Author:
3GP01 - Hardev Bhamra, Deepak Chandarana, James Tompkin
See Also:
Dictionary

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

Constructor Detail

TXTFilter

public TXTFilter()
Method Detail

accept

public boolean accept(java.io.File f)

getDescription

public java.lang.String getDescription()