for (int i = 0, n = experiment.getRecipeCount(); i < n; i++) { addRecipe(experiment.getRecipe(i));
for (int i = 0, n = experiment.getRecipeComponentCount(); i < n; i++) { addRecipe(experiment.getRecipeComponent(i));
  private void initDisplay() {    model.removeTreeModelListener(myTreeModelListener);    societies.removeAllChildren();    recipes.removeAllChildren();    model.nodeStructureChanged(root);    DefaultTreeCellRenderer renderer = new DefaultTreeCellRenderer();    if (!isEditable) {      renderer.setTextNonSelectionColor(Color.gray);      renderer.setTextSelectionColor(Color.gray);    }    tree.setCellRenderer(renderer);    tree.setEditable(isEditable);    SocietyComponent society = experiment.getSocietyComponent();    if (society != null) {      addSocietyComponent(society);    }    for (int i = 0, n = experiment.getRecipeCount(); i < n; i++) {      addRecipe(experiment.getRecipe(i));    }    tree.expandNode(societies);    tree.expandNode(recipes);    model.addTreeModelListener(myTreeModelListener);    updateTrialCount();  }