Skip to content

Latest commit

 

History

History

swing-localizer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Swing localizer

Localization standard Java Swing components

Using

  • include library in your project

  • add swing_<lang>_<country>.properties file with your localization in resources folder in your project.

    • or create your custom BundleStore with use SPI
    • P.S. Russian localization added by default
  • call static method localize from class SwingLocalizer.

    Examples:

    import SwingLocalizer;
    public class Main {
      static {
        SwingLocalizer.localize();
      }
      public static void main(String[] args) {
        // ...
      }
    }

    or

    import SwingLocalizer;
    public class Main {
      public static void main(String... args) {
        SwingLocalizer.localize();
        // ...
      }
    }

Compile and packaging

Using Maven in project root directory execute mvn clean package.