I have a miglayout for a window where one of the columns was specified as grow
but I need to modify that so it basically means "grow, but limit to _ pixels".
Is there a way I can do this?
I have a miglayout for a window where one of the columns was specified as grow
but I need to modify that so it basically means "grow, but limit to _ pixels".
Is there a way I can do this?
It is doable. Just set the MAximum size for the column. In the following example
setLayout(
new MigLayout(
"",
"[89px][:89px:250px,grow][89px,grow]",
"[23px][23px][23px]"));
second column has preferred size of 89 pixels and max size of 250 pixels. It will stop growing at 250. the thirst column will continue growing.