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
?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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")