java.swt.Desktop equivalent?

Scott Palmer swpalmer at
Fri Dec 28 17:48:55 PST 2012

I'm using java.awt.Desktop.getDesktop().open(File) in my application.  Is there an equivalent in JavaFX?   I've found HostServices, but that implies a browser environment.  

If not, shall I enter an issue in Jira?

It seems like a bad idea to use AWT classes in a JavaFX app.  On OS X I see all sorts of weird messages if I try because some things try to initialize the AWT thread which can't initialize properly if JavaFX is initialized first.



More information about the openjfx-dev mailing list