posted 22 years ago
Look at this example... I think it does what you want... one tricky thing I had to do was call getParent().validate() whenever the label is dragged and the panel needs to resize. Otherwise the scrollpane won't redraw and relayout everything, and the panel will look like it hasn't changed size.
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.