// Setup an event which will be sent when
// the menu item is pressed.
OpenRequestEvent event = new OpenRequestEvent(
getContext(), new File(name));
AntMenu subMenu = new AntMenu(getContext(),
event, name);
JMenuItem item = _menu.add(subMenu);
item.setAccelerator(
KeyStroke.getKeyStroke("control " + count));