JXStatusBar comes along with an internal layout manager. For every component you want to add, you can provide a constraint, which is used by the layout manager to place your components as needed. Additionally the constraint constructor also contains an insets argument which can be used to add additional space between components.
All relevant lines are highlighted. Press the "Run..." button to start the example.