Class FileDialog

java.lang.Object
org.indiumstudios.keylib.fs.FileDialog

public final class FileDialog extends Object
  • Method Details

    • openFile

      @Nullable public static @Nullable String openFile(CharSequence type, CharSequence fileTypes)
      Opens a file dialog.
      Parameters:
      type - The type of files you want.
      fileTypes - The file types.
      Returns:
      The filepath, an empty string, or null based on the result.
    • saveFile

      @Nullable public static @Nullable String saveFile(CharSequence type, CharSequence fileType, CharSequence defaultName)
      Saves a file.
      Parameters:
      type - The type.
      fileType - The file extension type.
      defaultName - The default name that will be given to the file.
      Returns:
      The filepath, an empty string, or null based on the result.