You can specify the percentage that the component should grow in the constructor using grow XX
where XX
is the percentage to grow.
In your example:
j.setLayout(new MigLayout("debug,fill", "[grow 70, fill]5[grow 30, fill]", "[:100:]10[fill,grow]"));
That's assuming you want the orange panel to take 70% of the screen and the blue panel 30% of the screen at all times.