fMenu = null;
}
protected Object addMenuItem(String key) {
MenuData menuData = ResourceUtils.getMenuData(key);
JMenuItem item = new JMenuItem(menuData.getName());
if (menuData.hasShortcut()) {
KeyStroke ks = KeyStroke.getKeyStroke(menuData.getShortcutKeyCode(),
Event.CTRL_MASK);
item.setAccelerator(ks);
}
item.addActionListener(this);
fMenu.add(item);