> I have a JSpinner and want the buttons to be on the left, not the
> right.
Use a mirror. [ ;-) ]

Signature
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
ChooChooOnMyHead - 17 Jun 2005 17:31 GMT
hahaha. as long as i don't put the mirror in a case and then break it
and get 7 years bad luck that'll be ok. thanks for the solution
Fritsch, all set.
~Doktor
> I have a JSpinner and want the buttons to be on the left, not the
> right. Is there a setting for this or will I have build my own
> JSpinner to accomplish it? Thanks
> ~Doktor
To set the orientation of your single JSpinner:
yourSpinner.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
or may be, if you want to set the orientation of your entire GUI:
yourFrame.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
These methods are described in
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Component.html

Signature
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')
Pete Barrett - 17 Jun 2005 18:55 GMT
>> I have a JSpinner and want the buttons to be on the left, not the
>> right. Is there a setting for this or will I have build my own
[quoted text clipped - 9 lines]
>These methods are described in
>http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Component.html
I'm not sure this is what he wants. If I understand him, he wants
normal text direction (ie. right to left or left to right, depending
on locale), but with the arrow buttons on the left instead of the
right of the editor. Won't setting the ComponentOrientation to
RIGHT_TO_LEFT set the text running right to left as well (I've never
used it myself)?
As an alternative, he could probably write his own LayoutManager for
the JSpinner - the code's available, and it would only need trivial
changes to put the buttons on the right instead of the left.
Pete Barrett