• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why JeditorPane inside a JScrollPane start from buttom?

 
Sammy Bill
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a JEditorPane inside a JScrollePane and for some reason, when i view a link in the JEditorPane, The page start at the buttom.

How can i fix this so when the panel is loaded, the page will start from the top?

Thanks
 
Rob Spoor
Sheriff
Pie
Posts: 20659
64
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set the caret position at the start.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic