aspose file tools*
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
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: 302
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: 302
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
 
Similar Threads
How to start server at the port which not 1099?
Displaying document contents
Using html tags
Hyperlinks in JEditorPane
Formatted text pane problem