Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using html tags  RSS feed

 
Fardeen Siddiqui
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am making an application which gets a string from a URL and scrolls the text across a JFrame..now this text also has html tags like etc..What happens is these tags come as it is like a String....
can some pls help me how to make these tags work meaning a hyperlink
should become a hyperlink and so all the rest..
thanx
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Well have u tried to display the text in a JEditor pane??
I guess that supports HTML and so interprets the tags that u send as a string and displays the same..
Well look around the swing api in javax.swing.text.html.* for more methods and workrounds..
all the best
Regds
Gautham Kasinath
 
Fardeen Siddiqui
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to add to my query,
see i get the contents as a string..now for a smooth scroll i have embeded the string on an rectaangle, which moves on the jframe. so how do i use jeditorpane
thanx
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!