IsmAvatar/LateralGM

Swing Standard Component Localization

RobertBColton opened this issue · 0 comments

Anywhere we display standard Swing components, such as JOptionPane, you can not localize them if we aren't using the Messages.java class. The solution is to actually provide our message bundles to Swing in the UI properties.

UIManager.getDefaults().addResourceBundle("com.mypackage.messages");

https://stackoverflow.com/a/6932717