Java JSCrollPane won’t resize below minimum size of JButton with text
I’m trying put a JPanel (GridLayout 0, 1) with JButtons it, within the ViewPort of a JScrollPane. This is easy enough to do, but it doesn’t behave “properly” when resizing the parent JFrame. Buttons resize to fill the entire panel as intended, but with one major limitation. If I attempt to resize the frame horizontally (in run-time by corner dragging), it stops after a point. The panel will extend infinitely, but it won’t contract below the minimum size necessary to display the Text on the button with the shortest Text.