edu.umd.cs.findbugs

Class L10N

public class L10N extends Object

Method Summary
static StringgetLocalString(String key, String defaultString)
static voidlocaliseButton(AbstractButton button, String key, String defaultString, boolean setMnemonic)
Localise the given AbstractButton, setting the text and optionally mnemonic Note that AbstractButton includes menus and menu items.

Method Detail

getLocalString

public static String getLocalString(String key, String defaultString)

localiseButton

public static void localiseButton(AbstractButton button, String key, 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

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.