Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Java
Expertise: Intermediate
Dec 1, 2000



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Opening a Browser in a Browser Window Through an Applet Program

If you want to show online help (HTML Pages or images) through your applet by clicking the Help button or the F1 key or some other icon, you have to invoke the relevant help page in the Browser window.

Solution: There is a method in the interface java.applet.AppletContext called showDocument(). There are two versions of this method available.
public void showDocument(URL url,String target) and
public void showDocument(URL url)

The first one requests the browser to show the Web page being indicated by the URL argument. The target argument indicates in which HTML frame the document is to be displayed. The target argument is interpreted as follows:
Manish Kumar
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date