• Post Reply Bookmark Topic Watch Topic
  • New Topic

How I can display html page on LABEL ?

 
Sameer Chandra
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created a GUI using swing and now I have to display a HTML page on a JLabel. The html file is being generated by the aplication and uses google api to get driving directions. I need to display this page on the LABEL instead of generating a separate pop up html page.

Can any Java Swing Master help please ....?

Thanks and appreciation in advance.

Sam
 
Rob Spoor
Sheriff
Posts: 20819
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just using new JLabel(htmltext) should work. Although it only supports HTML 3.2.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!