Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSpinner with SpinnerDateModel - how to set a different Locale?

843804Apr 1 2004 — edited Jan 30 2005
I wonder, how I can get my JSpinner to display dates in some different Locale.

I tried UIManager.getDefaults().setDefaultLocale(...) and spinner.setLocale(...) and ((JSpinner.DateEditor)spinner.getEditor()).setLocale(...) and ((JSpinner.DateEditor)spinner.getEditor()).getTextField.setLocale(...) but without any effect.

??? "Lost in Swing" ???
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 27 2005
Added on Apr 1 2004
1 comment
110 views