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 Swing / AWT / SWT and the fly likes How to include HTML file in core java application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to include HTML file in core java application" Watch "How to include HTML file in core java application" New topic
Author

How to include HTML file in core java application

Prakhar Singhal
Greenhorn

Joined: Dec 05, 2008
Posts: 6
Hi !!

Can somebody guide me by telling "how can I add HTML fiel in java application?"
I have created a simple application by using AWT and Swing components and I want to include a html file in it. When I start my application, I want to display this HTML file in a JPanel and then redirect to the main application.

How can help me to find the solution?
Robert Waals
Greenhorn

Joined: Dec 22, 2006
Posts: 14
The JEditorPane is capable of displaying HTML.
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
The JEditorPane is very limited on what it can display (HTML 3.2, no CSS, no JavaScript, etc.). I'd look into something more powerful that is still actively developed, like the Lobo web browser component on SourceForge.
Prakhar Singhal
Greenhorn

Joined: Dec 05, 2008
Posts: 6
Thankyou so much for your responses.....
 
Have you checked out Aspose?
 
subject: How to include HTML file in core java application
 
jQuery in Action, 3rd edition