projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e053ae
)
altosui: set default .csv file name in file save dialog
author
Keith Packard
<keithp@keithp.com>
Sat, 11 Sep 2010 03:55:05 +0000
(20:55 -0700)
committer
Keith Packard
<keithp@keithp.com>
Sat, 11 Sep 2010 03:55:59 +0000
(20:55 -0700)
This uses setSelectedFile to specify which output filename to make the
default in the save dialog.
Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/altosui/AltosCSVUI.java
patch
|
blob
|
history
diff --git
a/ao-tools/altosui/AltosCSVUI.java
b/ao-tools/altosui/AltosCSVUI.java
index 2d81236162c1b6d370a3ca6f9c82eceb773852e8..643d4112ae96666107a33e43c8f0d2f59fca6605 100644
(file)
--- 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 {