public char getMnemonicChar() {
    if (mnemonicIndex < 0) return KeyEvent.CHAR_UNDEFINED;
    int index = mnemonicIndex - text.length();
    return index < 0 ? text.charAt(mnemonicIndex) : mnemonicSuffix.charAt(index);
  }
public char getMnemonicChar()