'How to invert JSpinner layout

I have a JSpinner:

Spinner

I want the up/down buttons to be on the left side, and also the text to align on the left.

Is there a simple way I can achieve this? Thank you

JSpinner spinner = new JSpinner();


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source