title: Align JPanel to right while still making the JPanel expandable using MigLayout
body: <p>How to align JPanel to the right while at the same time making the JPanel expandable (shrink and expand) using MigLayout?</p>
  
  <p>I am trying to display a inner JPanel within another outer JPanel and want to make the inner JPanel expandable. The inner JPanel has a component JPanel (another JPanel with buttons) on it. I also want the component JPanel to aligh right. I have used the following code but it does not work; the component JPanel is displayed to the left.</p>
  
  <pre><code>JPanel innerPanel = new JPanel(new MigLayout("debug, wrap, ins 0, fillx"));
  innerPanel.setFocusable(false);        
  innerPanel.add(componentPanel, "grow, right");
  outerPanel.add(innerPanel, BorderLayout.SOUTH);
  </code></pre>
  
  <p>Thanks for your help!</p>