This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 19685
    
  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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Why JeditorPane inside a JScrollPane start from buttom?