aspose 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
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: 42648
    
  65
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.


Ping & DNS - my free Android networking tools app
Prakhar Singhal
Greenhorn

Joined: Dec 05, 2008
Posts: 6
Thankyou so much for your responses.....
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to include HTML file in core java application