Swing/Locale のバックアップ差分(No.2)
- バックアップ一覧
- 現在との差分 を表示
- 現在との差分 - Visual を表示
- ソース を表示
- バックアップ を表示
- Swing/Locale へ行く。
- 1 (2008-01-07 (月) 12:38:12)
- 2 (2008-01-07 (月) 14:51:16)
- 3 (2011-01-18 (火) 02:29:14)
- 4 (2011-01-19 (水) 00:35:22)
- 5 (2014-11-01 (土) 00:46:09)
- 6 (2015-12-01 (火) 15:06:02)
- 7 (2016-05-26 (木) 15:13:34)
- 8 (2017-03-31 (金) 16:13:35)
- 9 (2017-06-05 (月) 20:44:55)
- 10 (2017-11-02 (木) 15:34:40)
- 11 (2018-05-25 (金) 18:42:39)
- 12 (2019-11-15 (金) 18:40:06)
- 13 (2021-06-02 (水) 12:17:58)
- 14 (2022-08-20 (土) 22:15:25)
- 追加された行はこの色です。
- 削除された行はこの色です。
TITLE:JFileChooserにLocaleを設定する #navi(../) *JFileChooserにLocaleを設定する [#d5c5fe75] >編集者:[[Terai Atsuhiro>terai]]~ 作成日:2008-01-07~ 更新日:&lastmod; #contents **概要 [#z80ce7f3] JFileChooserにLocaleを設定して、タイトルやボタンの文字列を変更します。 #screenshot **サンプルコード [#o0d6f00f] #code{{ //JFileChooser.setDefaultLocale(Locale.ENGLISH); fileChooser.setLocale((Locale)combo.getSelectedItem()); fileChooser.updateUI(); }} -&jnlp; //-&jnlp; -&jar; -&zip; **解説 [#h2e72623] 上記のサンプルでは、コンボボックスで指定したロケールをJFileChooserに設定してから開くようになっています。 タイトル、ボタンのラベルなどが、指定したロケールに変更されます。 - JDK 1.5.0_13 では、JVM のデフォルトが English 以外だった場合、Component#setLocale や、JComponent.setDefaultLocale を使っても反映されないようです。 -- [[Bug ID: 6606475 JComponent.setDefaultLocale(Locale.ENGLISH) useless if def locale is non-english>http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6606475]] -- JDK 1.6.0 では問題無し **参考リンク [#gbe40f72] - [[Bug ID: 6606475 JComponent.setDefaultLocale(Locale.ENGLISH) useless if def locale is non-english>http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6606475]] **コメント [#h2cbdcae] #comment