JScrollpane auto resize
Maybe a simple question, but I could not find an answer anywhere:
I have a JScrollpane, and when the parent frame is resized, the scrollpane should do so as well - just like panels do.
I experimented with weightx, without success..
A scroll pane works the same way as a panel does, so if you know how to do it with a panel I'm not sure what your problem is.
The easiest solution is to add the scroll pane to the center of a BorderLayout.
Does not work :confused: The scrollPane still has a static size.
Of course it works. You have done something else wrong. Post your SSCCE. If you don't know what a SSCCE is then search the web.