void (JComponent component) { JLabel label = (JLabel)component; final char mnemonic = myBookmark.getMnemonic(); if (mnemonic != 0) { label.setText(Bookmark.toString(mnemonic, true)); } else { label.setText(""); } }