renameRecipe(node, name);
renameRecipe(getSelectedNode(), name);
  private void renameRecipe(DefaultMutableTreeNode node) {    String name = JOptionPane.showInputDialog("New recipe name");    renameRecipe(node, name);  }