The power of MigLayout is compressed like a GridBagLayout for hidden objects

I'm trying to replace GridBagLayoutwith MigLayout. The problem is that if I call obj.setVisible(false)for some object in GridBagLayout, the layout is compressed. But in MigLayouthe remains hidden. Do you know how to make MigLayoutacting like GridBagLayout?

+5
source share
1 answer

Take a look at the "hidemode" property in the Cheat Sheet MigLayout here:

http://www.migcalendar.com/miglayout/cheatsheet.html

You probably want new MigLayout("hidemode 3")

+9
source

All Articles