org.crosswire.common.swing
Class CWLabel

java.lang.Object
  extended by org.crosswire.common.swing.CWLabel

public final class CWLabel
extends Object

CWLabel is a utility class to create JLabels from text with an optional mnemonic indicator. A preceding '_' indicates a mnemonic.

Author:
DM Smith
See Also:
The GNU General Public License for details.

Constructor Summary
private CWLabel()
          Utility class.
 
Method Summary
static JLabel createJLabel(String text)
          Construct a JLabel from text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CWLabel

private CWLabel()
Utility class. Prevent instantiation.

Method Detail

createJLabel

public static JLabel createJLabel(String text)
Construct a JLabel from text. A preceding '_' indicates a mnemonic. Mnemonics are ignored on MacOS X.

Parameters:
text - the text of the label, with an optional mnemonic indicator
Returns:
a JLabel

Copyright ยจ 2003-2015