posted 14 years ago
Hi, I have a JScrollPane with the Horizontal ScrollBar set to come on as needed.
I want to be able to remove the component (JPanel) added to scrollpane, and then add a different one (say a larger one),
and have the scrollbar update itself so I can then view all of the new component, but I'm not sure how to do it other than perhaps just rebuilding a new ScrollPane, and I guess I'll have to add this into the JPanel its in again too.
Any thoughts? Thanks