org.game.Juzzle
Class JuzzlePanel.ImageFileFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--org.game.Juzzle.JuzzlePanel.ImageFileFilter
Enclosing class:
JuzzlePanel

public class JuzzlePanel.ImageFileFilter
extends javax.swing.filechooser.FileFilter

file filter for image loading. Loads only JPEG and GIF


Constructor Summary
JuzzlePanel.ImageFileFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
          every directory and files with endings *.jpg, *.jpeg, *.gif are accepted
 java.lang.String getDescription()
          return the string to display it in the file chooser dialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JuzzlePanel.ImageFileFilter

public JuzzlePanel.ImageFileFilter()
Method Detail

accept

public boolean accept(java.io.File f)
every directory and files with endings *.jpg, *.jpeg, *.gif are accepted
Overrides:
accept in class javax.swing.filechooser.FileFilter
Parameters:
f - the file
Returns:
accepted or not

getDescription

public java.lang.String getDescription()
return the string to display it in the file chooser dialog
Overrides:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
the description string