Is this your first time here? SwingWiki is a Java Swing Developer community site with an big archive of Swing-related usenet groups and mailing lists, but also tips, tricks and articles and book reviews written by your colleagues from around the world. If you came here through a search engine and did not find what you were looking for, make sure to check the wiki table of contents.

Automatic JEditorPane scroll

When changing HTML content inside JEditorPane, the scroll bar always goes down to the end - if you want to show the start of new page neither scrollTo(Anchor), nor getVerticalScrollBar().setValue(0) will work. However, moveCaretPosition(0) will do the job.

 

Comments? Corrections? Contact us or Login to edit pages directly (registration is free and takes less than displaying a JLabel)
  workaround/jeditorpane_scroll.txt · Last modified: 2006/12/28 13:45 by 67.91.200.194 (fabioingrao)
 
Recent changes | RSS changes | Table of contents | News Archive | Terms And Conditions | Register | The Quest For Software++| Ruby Resources
FitNesse Resources