Context-sensitive WebHelp for Java applets

Note: The information in this topic is intended for developers who need to connect context-sensitive WebHelp topics to Java applets.

Launching a context-sensitive WebHelp topic from a Java applet is similar to launching an HTML file in a secondary window.

In the example below, ShowHelp is a member of the derived Applet class. It displays the specified topic in a secondary browser window:

public void ShowHelp(String strTopic)
{

URL url = new URL(getDocumentBase(), "help/" + strTopic);
getAppletContext().showDocument(url, "secondary");

}