Using the FileChooser in JavaFX 2.0. How do you correctly set the initial directory?
In Swing you would do the following:
JFileChooser Choose = new JFileChooser();
Choose.setCurrentDirectory(new File("."));
But in JavaFX:
Choose.setInitialDirectory(new File("."));
does not work and causes JavaFX to bomb out when this code is triggered.
Edited by: 863626 on 30-Oct-2011 05:30