Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JScrollPane and setting knob increment?

843805Nov 23 2005 — edited Nov 30 2005
Does anyone know of a way to set the increment of a 'knob' drag using JScrollPane? I have a JTextPane that I've added to the JScrollPane and I want any vertical scrolling to be done on a line by line basis. I've set both the unit and block increments to the appropriate value, which allows all vertical scrolling done by the buttons and track to be line by line, however when the knob is dragged it still seems to be pixel by pixel. I would like this feature to be line by line as well...
thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 28 2005
Added on Nov 23 2005
6 comments
164 views