Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }