The AWT class Desktop is crucial for rich client applications to be able to interact with other applications on a computer like the user's mail application or PDF viewer. The trouble is, while the Desktop class works on my Mac, it does not when I am running a JavaFX application. I am running
Java version: 1.6.0_35
JavaFX version: 2.2.0-beta-b19
and if I run this trivial program
public class TestDesktop {
public static void main(String... arguments) {
System.out.println("Is desktop supported: " + Desktop.isDesktopSupported());
}
}
the output is "true". However, if I do the same inside a JavaFX application, I get "false.
Since the Desktop object has been part of Java since 1.6, the fact that JavaFX cripples it, is a bug - and, I think, a serious one too.