repaint();
  public void showDemandChart(boolean doShow) {    if (doShow) {      int addIndex = Math.min(DEMAND_CHART_INDEX, mainPanel.getComponentCount());      mainPanel.add(demandChart, DEMAND_CHART_CONSTRAINTS, addIndex);    } else {      mainPanel.remove(demandChart);    }  }