Class ClientFileUtilities

  • Direct Known Subclasses:
    FPMIFileUtilities

    public class ClientFileUtilities
    extends java.lang.Object
    • Constructor Detail

      • ClientFileUtilities

        public ClientFileUtilities()
    • Method Detail

      • getChooser

        public static javax.swing.JFileChooser getChooser​(int dialogType,
                                                          java.lang.String desc,
                                                          java.lang.String... ext)
        Creates a file choose of the given type (JFileChooser.OPEN_DIALOG or JFileChooser.SAVE_DIALOG), that is set to single file-only selection. If extensions are given, a file filter will be added for those extensions.
        Parameters:
        ext - A list of acceptable file extensions (like "txt" or "jpeg")