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 How to scroll in a JEditorPane 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 "How to scroll in a JEditorPane" Watch "How to scroll in a JEditorPane" New topic
Author

How to scroll in a JEditorPane

Alejandro Barrero
Ranch Hand

Joined: Aug 01, 2005
Posts: 311
I am displaying an HTML document in a JEditorpane and I want to scroll to a specific word in the document. How do I do it?


Your help will be greatly appreciated,
Alejandro Barrero
Alejandro Barrero
Ranch Hand

Joined: Aug 01, 2005
Posts: 311
Found it. JtextComponent.select(int start, int end) does the trick.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to scroll in a JEditorPane