February 28th, 2011, 01:31 AM
JscrollPane wont scroll horizontal
I have a textbox placed inside a scroll pane which I need to scroll horizontally once the end of the box is reached and only go on a new line when I tell it to
The scroll pane works fine vertically, adding a scroll bar once the bottom of the box has been reached but i cant get it to add the horizontal one. It just automatically puts the text onto a new line was it reaches the edge of the text box.
Why wont it automatically scroll horizontal?
February 28th, 2011, 05:20 AM
Re: JscrollPane wont scroll horizontal
It's probably because the text component you are using to display the text is set to wrap the text and it's width is the same as the scroll pane display area's width.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.