Class FWFileChooserHelper

java.lang.Object
net.simplace.ui.service.FWFileChooserHelper

public final class FWFileChooserHelper extends Object
File dialogs of the GUI.
Author:
Andreas Enders
  • Method Details

    • chooseFile

      public static File chooseFile(String aExtension)
      Shows a save dialog restricted to the given extensions. The selected extension is appended if the file name does not end with it; the user is asked before an existing file is overwritten. The chosen directory is remembered in FWConstants.LAST_FOLDER.
      Parameters:
      aExtension - comma separated list of allowed extensions without dot
      Returns:
      the chosen file, or null if the dialog was cancelled