1.

How Do I Select A Url From My Applet And Send The Browser To That Page?

Answer»

Ask the applet for its applet context and invoke showDocument() on that context object.

URL targetURL;
STRING URLString
AppletContext context = getAppletContext();
TRY
{
targetURL = NEW URL(URLString);
}
catch (MalformedURLException e)
{
// Code for recover from the exception
}
context. showDocument (targetURL);

Ask the applet for its applet context and invoke showDocument() on that context object.

URL targetURL;
String URLString
AppletContext context = getAppletContext();
try
{
targetURL = new URL(URLString);
}
catch (MalformedURLException e)
{
// Code for recover from the exception
}
context. showDocument (targetURL);



Discussion

No Comment Found