示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#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);
 }