Campbell Ritchie wrote:That is not how you use a file chooser.
Liutauras Vilda wrote:Will try it tonight
docs.oracle.com wrote:Bringing up a standard open dialog requires only two lines of code:
//Create a file chooser
final JFileChooser fc = new JFileChooser();
...
//In response to a button click:
int returnVal = fc.showOpenDialog(aComponent);
Cannot make it work on os x. No compile errors, no exceptions thrown. Just requires to terminate program manually (on windows works perfectly fine in both ways: my previous and suggested by docs.oracle.com and Ritchie).
Might someone had an experience with javax.swing.JFileChooser class on os x platform?
Because at the moment it makes me think, that on os x simply it's not working.
And if it is a case, then JAVA ended up it's career as "platform independent" language (joking about this part)