I am trying to replace GridBagLayout
with MigLayout
. The problem is that if i call obj.setVisible(false)
for some object in GridBaglayout
, the layout shrinks. But in MigLayout
it just remains hidden. Do you know some way to make MigLayout
acting like GridBagLayout
?
Asked
Active
Viewed 1,022 times
5

Florent Bayle
- 11,520
- 4
- 34
- 47

AvrDragon
- 7,139
- 4
- 27
- 42
1 Answers
9
Have a look at the "hidemode" property on the MigLayout Cheat Sheet over here:
http://www.migcalendar.com/miglayout/cheatsheet.html
You probably want new MigLayout("hidemode 3")

Alexander Malfait
- 2,691
- 1
- 23
- 23