This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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
 
Have you checked out Aspose?
 
subject: Displaying a HTML file from a local file system(relative path) using JEditorPane?
 
jQuery in Action, 3rd edition