Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个窗口的miglayout,其中一列被指定为grow但我需要修改它,所以它基本上意味着“增长,但限制为___像素”。
grow
有没有办法我可以做到这一点?
这是可行的。只需设置列的最大大小。在下面的例子中
setLayout( new MigLayout( "", "[89px][:89px:250px,grow][89px,grow]", "[23px][23px][23px]"));
第二列的首选尺寸为 89 像素,最大尺寸为 250 像素。它将在 250 处停止增长。第三列将继续增长。