Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8125442

Mac: Only in JavaFX is Desktop not supported

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 8
    • 7u6
    • javafx
    • None
    • Java version: 1.6.0_35
      JavaFX version: 2.2.0-beta-b19

      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.

            anthony Anthony Petrov (Inactive)
            risaksen Randahl Isaksen
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: