我正在尝试替换GridBagLayout
为MigLayout
. 问题是,如果我调用obj.setVisible(false)
一些对象GridBaglayout
,布局会缩小。但MigLayout
它只是隐藏在其中。你知道一些让MigLayout
表演变得像的方法GridBagLayout
吗?
问问题
983 次
1 回答
9
在这里查看 MigLayout 备忘单上的“hidemode”属性:
http://www.migcalendar.com/miglayout/cheatsheet.html
你可能想要new MigLayout("hidemode 3")
于 2011-10-24T08:51:40.577 回答