Example #1
0
 /**
  * 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);
 }
Example #2
0
 /**
  * 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);
 }
Example #3
0
 /**
  * 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);
 }
Example #4
0
 /**
  * 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);
 }
Example #5
0
 /**
  * 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);
 }
Example #6
0
 /**
  * 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);
 }
Example #7
0
 /**
  * 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);
 }