dcsimg
Display an html file in an applet
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anandan_varadarajan
Posted On:   Tuesday, June 12, 2001 10:20 PM

How do I display an html file in an applet ? "

Re: Display an html file in an applet

Posted By:   ramanujam_ragavan  
Posted On:   Saturday, June 16, 2001 03:18 AM

Hi,




You can display an HTML Page in an applet by

creating an object of the URL Class as:

URL u=new URL("the HTML path");
followed by :


getAppletContext().showDocument(u);





You can also use the JEditorPane in the javax.swing package




Good Luck
About | Sitemap | Contact