Scroll Bar dilema

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bubbs
    New Member
    • Nov 2007
    • 17

    Scroll Bar dilema

    Hi,
    I have a JTabbed pane and on tab 1, I have a panel that covers the size of the whole tab. At the bottom of the panel I have a scroll pane and on the pane a horizontal scroll bar.
    The problem is that when I scroll, the screen doesnt change. What do I have to add to the adjustmentValue Changed() ?
    Btw, Ive done this in NetBeans 6.0.1.
    Thanks
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by Bubbs
    Hi,
    I have a JTabbed pane and on tab 1, I have a panel that covers the size of the whole tab. At the bottom of the panel I have a scroll pane and on the pane a horizontal scroll bar.
    The problem is that when I scroll, the screen doesnt change. What do I have to add to the adjustmentValue Changed() ?
    Btw, Ive done this in NetBeans 6.0.1.
    Thanks
    You shouldn't add anything at all: just add the JComponent you want to scroll
    to the JScrollPane and add the latter to a parent, say, JPanel. That JPanel again
    should be an element of your JTabbedPane.

    kind regards,

    Jos

    Comment

    • Bubbs
      New Member
      • Nov 2007
      • 17

      #3
      thanks man, i'll implement it.

      Comment

      Working...