Is there any simple way to center a button on a row with a loading indicator on the left side of the button without moving the button itself?
I want the button to be always be centered and the loading indicatior (JLabel) should be right on the side of the button.
This solution seems way too complicated and doesn't actually work for what I want to do.
What I have so far is this:
setLayout(new MigLayout("align center center"));
add(_loadingIndicator, "center, split 2");
add(_applyButton, "center");
but that center the 2 components together so the button is never really centered.