• Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying html file in Swing?  RSS feed

 
Landon Blake
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm looking for a Swing widget that displays an HTML file. I don't need something real fancy, but support for CSS would be great. Also looking for something open source.

Any suggestions?

Thanks,

Landon

(When loading a file in my application I want to display a simple html file describing the file the user has selected in the chooder dialog.....)
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to our Swing forum...
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The javax.swing.JEditorPane class can display HTML (and RTF) files. It supports HTML 3.2 (no CSS, no JS).
 
Scott Delap
author
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depending on your needs you might look at the JDIC project's browser component. Commercially WebRenderer is a pretty good package.

Scott Delap
ClientJava.com
Desktop Java Live
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!