/** * Open dialog to choose an image * * @return Chosen file image or {@code null} if no selection */ public static File loadAnImage() { return FileChooser.chooseAnImage(null, true, null); }
/** * Open dialog to choose an image * * @param startFile Start file/directory * @return Chosen file image or {@code null} if no selection */ public static File loadAnImage(final File startFile) { return FileChooser.chooseAnImage(null, true, startFile); }
/** * Open dialog to save an image * * @param title Dialog title * @param startFile Start file/directory * @return Chosen file image or {@code null} if no selection */ public static File saveAnImage(final String title, final File startFile) { return FileChooser.chooseAnImage(title, false, startFile); }
/** * Open dialog to save an image * * @param startFile startFile Start file/directory * @return Chosen file image or {@code null} if no selection */ public static File saveAnImage(final File startFile) { return FileChooser.chooseAnImage(null, false, startFile); }
/** * Open dialog to save an image * * @return Chosen file image or {@code null} if no selection */ public static File saveAnImage() { return FileChooser.chooseAnImage(null, false, null); }
/** * Open dialog to choose an image * * @param title Dialog title * @param startFile Start file/directory * @return Chosen file image or {@code null} if no selection */ public static File loadAnImage(final String title, final File startFile) { return FileChooser.chooseAnImage(title, true, startFile); }
/** * Open dialog to choose an image * * @param title Dialog title * @return Chosen file image or {@code null} if no selection */ public static File loadAnImage(final String title) { return FileChooser.chooseAnImage(title, true, null); }