dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


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

WEBINAR:

On-Demand

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.

 

 

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