IsmAvatar / LateralGM

A free Game Maker source file editor
http://lateralgm.org/
Other
95 stars 25 forks source link

Swing Standard Component Localization #533

Closed RobertBColton closed 4 years ago

RobertBColton commented 4 years ago

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