summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/gui/awt/SimpleFileDialog.java
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2016-02-29 10:41:17 -0500
committerbculkin2442 <bjculkin@mix.wvu.edu>2016-02-29 10:41:17 -0500
commit82951e37e10b282d9a7c89f4662990b64949c943 (patch)
treef84770bf755c4d187ef46e137082248c2709fed9 /BJC-Utils2/src/main/java/bjc/utils/gui/awt/SimpleFileDialog.java
parent68faea64a4b1ef23acba209ad502e4458eb16290 (diff)
General code cleanup
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/gui/awt/SimpleFileDialog.java')
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/gui/awt/SimpleFileDialog.java32
1 files changed, 16 insertions, 16 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/gui/awt/SimpleFileDialog.java b/BJC-Utils2/src/main/java/bjc/utils/gui/awt/SimpleFileDialog.java
index 2e13949..c12119f 100644
--- a/BJC-Utils2/src/main/java/bjc/utils/gui/awt/SimpleFileDialog.java
+++ b/BJC-Utils2/src/main/java/bjc/utils/gui/awt/SimpleFileDialog.java
@@ -23,6 +23,19 @@ public class SimpleFileDialog {
* The parent of the file picker
* @param title
* The title of the file picker
+ * @return The file the user picked
+ */
+ public static File getOpenFile(Frame par, String title) {
+ return getOpenFile(par, title, (String[]) null);
+ }
+
+ /**
+ * Prompt the user to pick a file to open
+ *
+ * @param par
+ * The parent of the file picker
+ * @param title
+ * The title of the file picker
* @param extensions
* The extensions to accept as valid
* @return The file the user picked
@@ -48,7 +61,7 @@ public class SimpleFileDialog {
}
/**
- * Prompt the user to pick a file to open
+ * Prompt the user to pick a file to save
*
* @param par
* The parent of the file picker
@@ -56,8 +69,8 @@ public class SimpleFileDialog {
* The title of the file picker
* @return The file the user picked
*/
- public static File getOpenFile(Frame par, String title) {
- return getOpenFile(par, title, (String[]) null);
+ public static File getSaveFile(Frame par, String title) {
+ return getSaveFile(par, title, (String[]) null);
}
/**
@@ -90,17 +103,4 @@ public class SimpleFileDialog {
return fd.getFiles()[0];
}
-
- /**
- * Prompt the user to pick a file to save
- *
- * @param par
- * The parent of the file picker
- * @param title
- * The title of the file picker
- * @return The file the user picked
- */
- public static File getSaveFile(Frame par, String title) {
- return getSaveFile(par, title, (String[]) null);
- }
}