public static MenuItem menuItemAwt(String title, P0 p0) {
    	MenuItem ret = new MenuItem(title);
    	if (p0!=null) {
    		ret.addActionListener(SwingUtil.toActionListener(p0));
    	} else {
    		ret.setEnabled(false);
    	}
//    	if (accelerator != null) {
//    		ret.setShortcut(new MenuShortcut .getKeyStroke(accelerator));
//    	}
    	return ret;
    }