summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7e053ae)
This uses setSelectedFile to specify which output filename to make the
default in the save dialog.
Signed-off-by: Keith Packard <keithp@keithp.com>
path = path.substring(0,dot);
path = path.concat(".csv");
csv_chooser = new JFileChooser(path);
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 {
int ret = csv_chooser.showSaveDialog(frame);
if (ret == JFileChooser.APPROVE_OPTION) {
try {