Changing locale at runtime in Swing

后端 未结 5 1310
再見小時候
再見小時候 2020-12-23 22:13

I would like to be able to change the locale in my Swing application at runtime and have all the text elements on the screen update themselves with localized text from a Res

5条回答
  •  甜味超标
    2020-12-23 22:46

    What about, on changing locale, do a firePropertyChangeEvent("locale", "..."), then add propertyChangeListener() and register them, whereever labels and the like are to be updated?

提交回复
热议问题