JSpinner resizes, I don't want that.
Suppose I have a JPanel with a FlowLayout. I populate the JPanel with a few JSpinners. They all have a SpinnerListModel with simple Strings. So far there's no problem. Not all Strings in those models are equal in size, neither in the number of characters, nor in their display length. Suppose the current value of a JSpinner is a short String while its initial value was a longer String. The currently displayed String has a bit of white space on its left side.
So far so good but after I have hidden the JPanel component (it is part of a modeless JDialog) and show it again the JSpinner has resized itself to display the current (shorter) String so the extra space on the left of the String is gone and the longer (initial) String doesn't fit in the Spinner anymore.
My question is: how do I make a JSpinner size itself w.r.t. the longest String in its model and make it stay that way?