Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force MigLayout shrink like GridBagLayout for hidden Objects

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?

like image 951
AvrDragon Avatar asked Aug 25 '11 12:08

AvrDragon


1 Answers

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")

like image 82
Alexander Malfait Avatar answered Oct 05 '22 22:10

Alexander Malfait