tags:

views:

10

answers:

1

I am adding a button to a panel using Miglayout, and try what I might, I cannot get it to go to the right end of the panel. It insists on going flush left. Oddly, the demo is kind of short on such on a example (it only shows it in the context of other buttons on the same panel.

I have a panel like this:

    dialog
      ->complex display retrieved from another class
                                               OK Button here.

Except that it always insists on putting it like this:

    dialog
      ->complex display retrieved from another class
    OK Button here.
A: 

OK, I got the answer to this (finally). When adding the panel that contains the button add the component constraint of "gapbefore push." I had been trying that, but only on the button itself, not the panel.

Yishai