repaint();
  public void showInventoryChart(boolean doShow) {    if (doShow) {      int addIndex = Math.min(LEVEL_CHART_INDEX, mainPanel.getComponentCount());      mainPanel.add(levelChart, LEVEL_CHART_CONSTRAINTS, addIndex);    } else {      mainPanel.remove(levelChart);    }  }