aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Why JeditorPane inside a JScrollPane start from buttom? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Why JeditorPane inside a JScrollPane start from buttom?" Watch "Why JeditorPane inside a JScrollPane start from buttom?" New topic
Author

Why JeditorPane inside a JScrollPane start from buttom?

Sammy Bill
Ranch Hand

Joined: Dec 29, 2008
Posts: 96
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

Joined: Oct 27, 2005
Posts: 19718
    
  20

Set the caret position at the start.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why JeditorPane inside a JScrollPane start from buttom?