java MigLayout面板位于MigLayout面板内,将其与底部对齐
右边的面板上有所有的按钮,我想与底部对齐
JPanel easternDock = new JPanel(new MigLayout("", ""));
easternDock.add(button1, "wrap");
....
this.add(easternDock);
我想我可以在所有按钮上方添加一个组件,并使其在y维度上增长以填充屏幕,但我不确定我会使用什么组件,我找不到任何设计用于实现这一点的组件
# 1 楼答案
我要做的是在“easternDock”面板中有另一个包含所有组件的面板,并让“easternDock”使用推列/行约束将另一个面板推到底部
从MiG备忘单:http://www.miglayout.com/cheatsheet.html
以下是一个例子: