Hello,
is there a possibility to set a stretch factor for a single row, e.g. when resizing a dialog I just want ONE row to stretch and all others should stay unchanged.
Regards
I think you could use the WeightY for this. I just tried a simple example with 4 buttons arranged in a square like so:
Button1 Button2
Button3 Button4
I went to the GridBagLayout.GridBagConstraint of buttons 3 and 4 and set the WeightY of each to 1. This makes these buttons fill the available height and they are the only ones that resize when I size the panel.