File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
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
Marshal

Joined: Mar 22, 2005
Posts: 42913
    
  68
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.....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to include HTML file in core java application