This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes How t o scroll in JEditorPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How t o scroll in JEditorPane" Watch "How t o scroll in JEditorPane" New topic
Author

How t o scroll in JEditorPane

Pradeep Kadambar
Ranch Hand

Joined: Oct 18, 2004
Posts: 148
Hi,

I have a file content comparison tool where I have two JEditorPanes displaying the two versions of the same file.

What I am trying to do is, when the user scrolls one document the other scrollpane also has to move down in sync. Adding a AdjustmentListner will help the cause??

Please put forth some suggestions.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How t o scroll in JEditorPane