Class L10N


  • public class L10N
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getLocalString​(java.lang.String key, java.lang.String defaultString)  
      static void localiseButton​(javax.swing.AbstractButton button, java.lang.String key, java.lang.String defaultString, boolean setMnemonic)
      Localise the given AbstractButton, setting the text and optionally mnemonic Note that AbstractButton includes menus and menu items.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getLocalString

        public static java.lang.String getLocalString​(java.lang.String key,
                                                      java.lang.String defaultString)
      • localiseButton

        public static void localiseButton​(javax.swing.AbstractButton button,
                                          java.lang.String key,
                                          java.lang.String defaultString,
                                          boolean setMnemonic)
        Localise the given AbstractButton, setting the text and optionally mnemonic Note that AbstractButton includes menus and menu items.
        Parameters:
        button - The button to localise
        key - The key to look up in resource bundle
        defaultString - default String to use if key not found
        setMnemonic - whether or not to set the mnemonic. According to Sun's guidelines, default/cancel buttons should not have mnemonics but instead should use Return/Escape