This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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: 19216

Set the caret position at the start.


SCJP 1.4 - SCJP 6 - SCWCD 5
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?
 
Similar Threads
display a browser(entire web page) inside a swing application
JEditorPane is not displaying a htm page properly: ActiveX issue
HTML with JEditorPane
JEditorPane
JEditorPane is a Pain