This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

can u do this?  RSS feed

 
ben riches
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
Is it possible to put a HTML document in a JScrollPane?
And if so can someone direct me in the right way of doing so.
Thanks
Ben
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do this is the JEditorPane. There is a perfect example of how to do this on Sun's Swing Tutorial.
The short of it is to do something along these lines (psuedo code warning)

Of course you will need to construct your URL object and put that in a try catch for exceptions. But that is the idea.
 
ben riches
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Gregg,

Thanks for your reply
Regards
Ben
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!