JDK-6857210 : BasicService.showDocument does not work for dragged-out applets started via desktop shortcut
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u16
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • CPU: x86
  • Submitted: 2009-07-03
  • Updated: 2010-04-04
  • Resolved: 2009-10-22
Related Reports
Duplicate :  
Description
None of the following expected approaches seem able to show a URL in a browser when the JavaFX app has been dragged-to-install.  Specifically, the problem is observed if the following steps are used to launch:
Show embedded in a browser, drag out, close the browser/tab, close the app, launch the app from the desktop link.

(a)
appletStageExtension.showDocument(url);

(b)
def applet = FX.getArgument("javafx.applet") as java.applet.Applet;
def appletContext = applet.getAppletContext();
appletContext.showDocument(url, "_blank");

(c)
def basicService = ServiceManager.lookup("javax.jnlp.BasicService") as BasicService;
basicService.showDocument(url);

When run as an Applet or as a WebStart app, these work as expected.

Produced on JavaFX 1.2 + Java 1.6.0_13 on Linux and Windows XP. (not yet tried on Mac)

Comments
EVALUATION Using the test applet in the comment section, this problem isn't reproducible with 6u18 b04 PIT build. It is likely due to the fix for 6835450. Closing it as a duplicate.
22-10-2009