From 82951e37e10b282d9a7c89f4662990b64949c943 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Mon, 29 Feb 2016 10:41:17 -0500 Subject: General code cleanup --- .../java/bjc/utils/gui/awt/SimpleFileDialog.java | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/gui/awt/SimpleFileDialog.java') 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 @@ -16,6 +16,19 @@ import bjc.utils.gui.SimpleDialogs; * */ public class SimpleFileDialog { + /** + * 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 + * @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 * @@ -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); - } } -- cgit v1.2.3