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

Mac: Only in JavaFX is Desktop not supported

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 7u6
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
      None
    • Environment:

      Java version: 1.6.0_35
      JavaFX version: 2.2.0-beta-b19

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: