myFileChoose
public static java.lang.String myFileChoose(java.lang.String filter,
boolean save)
throws java.lang.Exception
Wrapper for the Swing FileChooser. Prompts the user for a file that matches "filter".
If save is set to "true", the heading will read as "Save as".
If it is false, the heading reads "load".
If the User cancels, an Exception is thrown.
- Parameters:
filter
- StringFileFilter for the file typesave
- if true a save dialog is shown
- Returns:
- absolute path of the file
- Throws:
java.lang.Exception
- if the action is cancelled