for (int i = 0; i < getSocietyComponentCount(); i++) getSocietyComponent(i).setEditable(editable);
for (int i = 0; i < getComponentCount(); i++) getComponent(i).setEditable(editable);
  public void setEditable(boolean editable) {    this.editable = editable;    for (int i = 0; i < getSocietyComponentCount(); i++)      getSocietyComponent(i).setEditable(editable);  }