/*
* if this is running as an applet then get the applet context (a handle on
* the web browser hosting the applet)
*/
if (parentApplication == null) {
AppletContext ctx = getAppletContext();
ctx.showDocument(url, title);
} else {
/*
* otherwise the applet is hosted by an application so create a new
* web browser process and pass it the URL we want displayed
*/