Object[] values = metNameClassItems;
Object[] values = recipeNameClassItems;
  protected void newRecipe() {    Object[] values = metNameClassItems;    Object answer =      JOptionPane.showInputDialog(this, "Select Recipe Type",				  "Select Recipe",				  JOptionPane.QUESTION_MESSAGE,				  null,				  values,				  "Empty Recipe");    if (answer instanceof NameClassItem) {      NameClassItem item = (NameClassItem) answer;      String name = recipeNames.generateName(item.name);      while (true) {	name = (String) JOptionPane.showInputDialog(this, "Enter Recipe Name",						    "Name Recipe",						    JOptionPane.QUESTION_MESSAGE,						    null, null,						    name);	if (name == null) return;	if (!recipeNames.contains(name)) break;	int ok = JOptionPane.showConfirmDialog(this,					       "Use an unique name",					       "Recipe Name Not Unique",					       JOptionPane.OK_CANCEL_OPTION,					       JOptionPane.ERROR_MESSAGE);	if (ok != JOptionPane.OK_OPTION) return;      }      RecipeComponent recipe = helper.createRecipe(name, item.cls);      if (recipe != null)	addRecipeToWorkspace(recipe, getSelectedNode());    }  } // end of newRecipe