views:

11

answers:

1

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?

+2  A: 

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.

eugener
great -- thanks!
Jason S
Thank Mikael Grev for creating such wonderful layout :)
eugener