Interviewer And Interviewee Guide

Java Applet Interview Question:

How do I select a URL from my Applet and send the browser to that page?

Submitted by: Administrator
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);
Submitted by: Administrator

Read Online Java Applet Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.