trex.GUI.ImageChooser
Class ImageChooserUtils

java.lang.Object
  |
  +--trex.GUI.ImageChooser.ImageChooserUtils

public class ImageChooserUtils
extends Object

Stupid helper class for filechooser. Returns extension of a given file and knows about image suffixes.

This class was mostly stolen from Sun's documentation: FileChooser Demo (whoops... does this hurt GPL?!)

Version:
$Revision: 1.7 $
Author:
Bastian Friedrich <bastian@bastian-friedrich.de>

Field Summary
static String gif
          Image suffixes.
static String jpeg
          Image suffixes.
static String jpg
          Image suffixes.
static String png
          Image suffixes.
 
Constructor Summary
ImageChooserUtils()
           
 
Method Summary
static String getExtension(File f)
          Get the extension of a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jpeg

public static final String jpeg
Image suffixes.

See Also:
Constant Field Values

jpg

public static final String jpg
Image suffixes.

See Also:
Constant Field Values

gif

public static final String gif
Image suffixes.

See Also:
Constant Field Values

png

public static final String png
Image suffixes.

See Also:
Constant Field Values
Constructor Detail

ImageChooserUtils

public ImageChooserUtils()
Method Detail

getExtension

public static String getExtension(File f)
Get the extension of a file.

Returns:
File extension.