diff options
author | Keith Packard <keithp@keithp.com> | 2010-09-10 20:55:05 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-09-10 20:55:59 -0700 |
commit | 7f2204e0832b14b1edca4266a2cbc272141ecc2b (patch) | |
tree | f7ddd29efa55d747a5e6243d18ab8727feac34b4 | |
parent | 7e053ae1f2d09347123ac9fa79e46645378b4c70 (diff) |
altosui: set default .csv file name in file save dialog
This uses setSelectedFile to specify which output filename to make the
default in the save dialog.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | ao-tools/altosui/AltosCSVUI.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ao-tools/altosui/AltosCSVUI.java b/ao-tools/altosui/AltosCSVUI.java index 2d812361..643d4112 100644 --- a/ao-tools/altosui/AltosCSVUI.java +++ b/ao-tools/altosui/AltosCSVUI.java @@ -56,6 +56,7 @@ public class AltosCSVUI path = path.substring(0,dot); path = path.concat(".csv"); csv_chooser = new JFileChooser(path); + csv_chooser.setSelectedFile(new File(path)); int ret = csv_chooser.showSaveDialog(frame); if (ret == JFileChooser.APPROVE_OPTION) { try { |