org.crosswire.common.swing
Class CWLabel

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

public 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 [dmsmith555 at yahoo dot com]
See Also:
for license details.
The copyright to this program is held by it's authors.

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-2011