• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing HTML Viewer ?

 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any (read: more) support for viewing HTML in Swing?
I remember Applets do it in a browser, but looking at a stand alone app.
I have been out of touch with Swing for quite a while now , so sorry if that's a dumb question.
Thanks.

- m......the only swing I know now is from Fisher-Price!
 
Chitlesh GOORAH
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


you can access it by docHtml("index.html");
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, much.
Will try it out and let you know (read: get ready for more questions. )

- m
 
Chitlesh GOORAH
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok , ill stay tuned!
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
index = ChitleshGoorah.class.getResource(PATH);

Any pointers on what this class does or where it inherits from?
(Ok, it converts the Path to a URI, but who is its parent?)
Thanks.

- m
 
Chitlesh GOORAH
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
index = ChitleshGoorah.class.getResource(PATH);

sorry i copied it from my JApplet
remplace ChitleshGoorah by your parent class
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Getting an 'invalid URL' IO.Exception.
Any pointers on what the PATH should be?

I was trying with the (relative & full) path to a html file on my windows box but got that IO.Exception.

- m
[ May 25, 2005: Message edited by: Madhav Lakkapragada ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!