I have a simple Miglayout dialog with rows consisting of JLabels and JTextFields. The visiblility of a number of the components is set depending on the circumstances. However, when they are hidden the row height remains the same leaving a blank area.
I have set the min row height to 0px and also have other rows set to ‘grow’, but this doesn’t seem to help. Surely, if a row can be 0px high and its contents are hidden, then it should shrink shouldn’t it? Obviously I’m missing something!
Any help much appreciated.
You can set the hidemode of the layout to prevent invisible components from affecting the layout.
From http://migcalendar.com/miglayout/cheatsheet.html :