Trying to create JFileChooser and set the current directory DOES WORK in these instances:
1) Instantiating JFileChooser with a string LITERAL
2) Instantiating JFileChooser with a string VAR initialized with a string LITERAL
3) Instantiating JFileChooser with a string VAR initialized with another string VAR
Trying to create JFileChooser and set the current directory DOES NOT WORK in these instances:
4)
String backupLoc;
codeContext = new AnnotationConfigApplicationContext(BackupConfig.cl ass);
backupLoc = (String) codeContext.getBean("backupLocation");
JFileChooser fileChooser = new JFileChooser(backupLoc);
5)
String backupLoc;
codeContext = new AnnotationConfigApplicationContext(BackupConfig.cl ass);
backupLoc = (String) codeContext.getBean("backupLocation");
JFileChooser fileChooser = new JFileChooser();
fileChooser.setCurrentDirectory(new File(backupLoc));
Thanks in advance...