protected JMenu createMenu(String key){
  JMenu menu=new JMenu(getResourceString(key + labelSuffix));
  for (  String itemKey : getItemKeys(key)) {
    if (itemKey.equals("-")) {
      menu.addSeparator();
    }
 else {
      JMenuItem mi=createMenuItem(itemKey);
      menu.add(mi);
    }
  }
  return menu;
}

protected JMenu createMenu ( String key ) { JMenu menu = new JMenu ( getResourceString ( key + labelSuffix ) ) ; for ( String itemKey : getItemKeys ( key ) ) { if ( itemKey . equals ( "-" ) ) { menu . addSeparator ( ) ; } else { JMenuItem mi = createMenuItem ( itemKey ) ; menu . add ( mi ) ; } } return menu ; }
create a menu for the app . by default this pulls the definition of the menu from the associated resource file .
