Filedialogs in JavaFX-Applet under MacOS

Tony Anecito adanecito at
Fri Sep 5 20:12:11 UTC 2014

Hi Stefan,

I have not tried SWT FileDialog I use the awt FileDialog else I would get my app rejected.

Good Luck

On Thursday, September 4, 2014 7:49 PM, Stefan Fuchs <snfuchs at> wrote:


has anyone got an filedialog working under MacOS in an JavaFX-Applet?

What I tried so far:

-> FileChooser always opens right behind the browser (see, where no user will find it.
Same code works fine on Windows

2.Swing-JFileChooser / AWT-FileChooser:
-> Throws " java.awt.HeadlessException“ exception under Java 7
I read 
<> , but for me it is not 
clear, whether there is a workaround for Java 7.
I could try to convince users to upgrade to Java 8, but if you visit you'll see, it is currently nearly impossible for end 
users to download Java 8. The site still talks about Java 8 being a test 
release targeted towards developers, links to jdk, the download page is 
not localized, user must choose correct file, ....
Anyway, JFileChooser works fine on Windows

-> Closing the dialog throws NPE, then the Java-plugin crashes with an 
You get the song: Works fine on Windows

Sorry, if the above sounds like a rant, but finding a solution can be 
quite frustrating.
So any advice of how to get one of the above to work or about an 
alternative solution is very much appreciated.

- Stefan

More information about the openjfx-dev mailing list