598 |
int result = fc.showOpenDialog(this); |
int result = fc.showOpenDialog(this); |
599 |
if(result != JFileChooser.APPROVE_OPTION) return; |
if(result != JFileChooser.APPROVE_OPTION) return; |
600 |
|
|
601 |
cbFilename.setSelectedItem(toEscapedString(fc.getSelectedFile().getPath())); |
String path = fc.getSelectedFile().getAbsolutePath(); |
602 |
String path = fc.getCurrentDirectory().getAbsolutePath(); |
if(java.io.File.separatorChar == '\\') { |
603 |
|
path.replace('\\', '/'); |
604 |
|
} |
605 |
|
cbFilename.setSelectedItem(toEscapedString(path)); |
606 |
|
path = fc.getCurrentDirectory().getAbsolutePath(); |
607 |
preferences().setStringProperty("lastInstrumentLocation", path); |
preferences().setStringProperty("lastInstrumentLocation", path); |
608 |
} |
} |
609 |
|
|