JscrollPane wont scroll horizontal
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: JscrollPane wont scroll horizontal

  1. #1

    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?

  2. #2
    Join Date
    May 2006

    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.
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)