wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Displaying a HTML file from a local file system(relative path)  using JEditorPane? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Displaying a HTML file from a local file system(relative path)  using JEditorPane? " Watch "Displaying a HTML file from a local file system(relative path)  using JEditorPane? " New topic
Author

Displaying a HTML file from a local file system(relative path) using JEditorPane?

ShankarS
Greenhorn

Joined: Jul 29, 2001
Posts: 25
Hi,
The setPage() method of the JEditorPane takes an URL to display page using the HTTP protocol. I want to display a html page from my local file system.
Thanx. in Adavace,
Shankar S
veron luis
Greenhorn

Joined: Aug 16, 2001
Posts: 5
try
htmlPane.setPage(url);

where :
url is an object of type URL..

There is a good example in the Java tutorial available at www.java.sun.com

luis
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying a HTML file from a local file system(relative path) using JEditorPane?
 
Similar Threads
JEditorPane
HTML with JEditorPane
To display webpage in JEditorpane
JEditorPane problems
DISPLAY HTML AFTER LOADED