/** * Sets the text for the prefix label. Mnemonics can be indicated by a * preceding underscore "_". * * @param value the text to display * @see GUIHelper#MNEMONIC_INDICATOR */ public void setPrefix(String value) { char mnemonic; String caption; mnemonic = GUIHelper.getMnemonic(value); caption = GUIHelper.stripMnemonic(value); m_LabelPrefix.setText(caption); if (mnemonic != '\0') m_LabelPrefix.setDisplayedMnemonic(mnemonic); else m_LabelPrefix.setDisplayedMnemonicIndex(-1); if (value.length() > 0) m_LabelPrefixSpacer.setText(" "); else m_LabelPrefixSpacer.setText(""); }
lbl.setDisplayedMnemonic(GUIHelper.getMnemonic(label)); lbl.setLabelFor(comp);