private Action newDisplayKanaAction(final KanaType type) {
return new AbstractAction(Localizer.localize(type, "i18n.ui"), Resources.ICON_KEYBOARD_MAGNIFY) {
public void actionPerformed(ActionEvent e) {
AbstractButton button = (AbstractButton) kanaMenu.getInvoker();
Syllable syllable = (Syllable) button.getAction().getValue("syllable");
displayKana(Kana.get(type, syllable));
}
};
}