Re: Issue with Miglayout panel inside another panel
This issue has another root of evil:
If you adding something to BoxLayout which is Y-oriented, you should execute the method
for each object which is in that BoxLayout. (Maybe you should execute that method for all components in all BoxLayouts of your frame)
I think MigLayout container by default has LEFT_ALIGNMENT, so its position begins from center of another component and ends on the right.
Here is an example from first book about Swing from Ivan Portyankin:
Here you can find BoxLayoutDemo2, which explains the issue: