adding label to panel in scroll pane

Discussion in 'Java' started by memememe, Jul 10, 2003.

  1. memememe

    memememe Guest

    I am adding a label to a panel inside of a scrollpane and whnever my text
    goes beyond the right side of the scrollpane, my text just doest show, I
    would have expected the scrollpane to automatically show a horizontal
    scrollbar and let me see the text.
    memememe, Jul 10, 2003
    #1
    1. Advertising

  2. memememe

    memememe Guest

    "Thomas Weidenfeller" <> wrote in message
    news:beluuj$3sv$...
    > "memememe" <[rem]casolorz[rem]@hot[rem]mail.com> writes:
    > > I am adding a label to a panel inside of a scrollpane and whnever my

    text
    > > goes beyond the right side of the scrollpane, my text just doest show, I
    > > would have expected the scrollpane to automatically show a horizontal
    > > scrollbar and let me see the text.

    >
    > ScrollPane sp = new ScrollPane(ScrollPane.SCROLLBARS_AS_NEEDED);
    >
    > See the API documentation and the Sun tutorial for more details.
    >
    > /Thomas



    I fixed the problem and that wasnt what was causing it, instead the panel
    that the label was on was getting sized incorrectly.
    memememe, Jul 11, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kevin
    Replies:
    1
    Views:
    9,501
    Roland
    Feb 5, 2005
  2. Patrick.O.Ige
    Replies:
    0
    Views:
    757
    Patrick.O.Ige
    Aug 31, 2006
  3. Peter Ashford

    Full Size text areas in a scroll pane

    Peter Ashford, Jun 16, 2007, in forum: Java
    Replies:
    3
    Views:
    435
    Roedy Green
    Jun 29, 2007
  4. Aaron Fude
    Replies:
    6
    Views:
    1,873
    Andrew Thompson
    Jun 29, 2008
  5. Knut Krueger
    Replies:
    8
    Views:
    255
    Knut Krueger
    Aug 20, 2013
Loading...

Share This Page