Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1946

JSpinner locale specific

From "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this>
Subject JSpinner locale specific
Message-ID <1183574216.529846.297940@r34g2000hsd.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:36 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Hi all!

I create a simple JSpinner:

//lower and upper may be null (no limits)
SpinnerModel sm = new SpinnerDateModel(dtValue, dtLower, dtUpper,
spinTarget);

JSpinner spn = new JSpinner(sm);
spn.setLocale(Locale.getDefault());

However, the JSpinner never shows the date in the format of the
current (Locale.getDefault()) locale. I change that on the fly,
setting the locale works as I can see from the localized strings.

Only JSpinner seems to refuse displaying the localized string.

Can anybody point me into the right direction how to cure this?

TIA
Karsten

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | Next | Find similar


Thread

JSpinner locale specific "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000

csiph-web