aspose file tools
The moose likes Swing / AWT / SWT and the fly likes showing a html file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "showing a html file" Watch "showing a html file" New topic
Author

showing a html file

Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 912
Hi !
I have a small problems.I nedd to load & show an html file (text & pictures).
I try with HTML class - but this is not what I need.
Thanx


SCJP, SCJD, SCWCD
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

You can use a JEditorPane to display simple HTML... just text, pictures, tables, form elements, etc. but not any JavaScript or any other client side dynamic stuff. Just pass the URL of the resource you want to display to the JEditorPane constructor, or the setPage() method, and it should figure out your content is HTML.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 912
Thankx !
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: showing a html file
 
Similar Threads
CD Rom auto run
CD Rom auto run
Include directive
how to send console output to a html page
Basic Doubt