6 Replies Latest reply on Dec 5, 2012 12:31 PM by edward17

    OPening a browser in JavaFX - MacOS

      I am trying to open a native browser in MacOS.

      I have this code:
              if(Desktop.isDesktopSupported()) {
                  Desktop desktop = Desktop.getDesktop();
      But it fails the isDesktopSupported test.

      So I tried this:
        String osName = System.getProperty("os.name");
           if (osName.startsWith("Mac OS")) {
              Class fileMgr = Class.forName("com.apple.eio.FileManager");
              Method openURL = fileMgr.getDeclaredMethod("openURL",
                 new Class[] {String.class});
              openURL.invoke(null, new Object[] {url});
      but on the call to openURL.invoke() it goes off to lala land , never to respond

      Works fine under Windows. Any thoughts? Suggestions? Translation re: what is happening (I am new to MacOS)

      As to the question I KNOW will be asked, I am not using Webview here because I don't wnt to have to rebuild the Print functionality offered by native browsers...