Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.fluidsynth.gui
Class ConfigChooserUtil  view ConfigChooserUtil download ConfigChooserUtil.java

java.lang.Object
  extended byorg.fluidsynth.gui.ConfigChooserUtil

public class ConfigChooserUtil
extends java.lang.Object

Utility class for creating configuration file choosers.


Constructor Summary
ConfigChooserUtil()
           
 
Method Summary
static javax.swing.JFileChooser createChooser(java.awt.Component parent, java.lang.String configPathname, java.lang.String approveButtonText, java.lang.String title)
          Create a config file chooser.
static javax.swing.JFileChooser createChooser(java.awt.Component parent, java.lang.String configPathname, java.lang.String approveButtonText, java.lang.String title, javax.swing.filechooser.FileFilter filter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigChooserUtil

public ConfigChooserUtil()
Method Detail

createChooser

public static javax.swing.JFileChooser createChooser(java.awt.Component parent,
                                                     java.lang.String configPathname,
                                                     java.lang.String approveButtonText,
                                                     java.lang.String title)
Create a config file chooser. Try to open the file chooser in the directory containing the given config path, revert to user's home dir if anything goes wrong.


createChooser

public static javax.swing.JFileChooser createChooser(java.awt.Component parent,
                                                     java.lang.String configPathname,
                                                     java.lang.String approveButtonText,
                                                     java.lang.String title,
                                                     javax.swing.filechooser.FileFilter filter)