[BLUEJ-482] JFileChooser hangs in 3.0.9 on Macs
Sample code for the problem:
JFileChooser chooser = new JFileChooser(); System.out.println(chooser.getCurrentDirectory());
int res = chooser.showDialog(null, "OK");
System.out.println("chooser dialog returned " + res);
if (res == JFileChooser.APPROVE_OPTION)
\{
String myFile = chooser.getSelectedFile().getName();
System.out.println("You chose to open this file: " + myFile);
}
else
\{
System.out.println("you cancelled...");
}
On Mac OS X 10.8.3, Macbook Pro(6,1) IntelCore i7
On the first run, the dialog appears and all is well. On the second run the dialog does not appear and BlueJ must be forcibly closed.
Possibly a threading problem? Similar code works without problems in 3.0.8 and NetBeans.
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.1.0