reallignChartsByXAxis(levelChart.getFirstXAxis());
reallignChartsByXAxis();
  public void initializeMultiChart() {    int gridx = 0;    int gridy = 0;    logger = Logging.getLogger(this);//    InventoryColorTable colorTable = new InventoryColorTable();    Insets blankInsets = BLANK_INSETS;    levelChart = new InventoryLevelChart(displayCDay, prefData);    refillChart = new InventoryRefillChart(displayCDay, prefData);    demandChart = new InventoryDemandChart(displayCDay, prefData);    pointLabel = new JLabel(INITIAL_POINT_LABEL, JLabel.CENTER);    pointLabel.setBackground(Color.magenta);    cdaysModeCheck = new JCheckBox(CDAY_MODE, displayCDay);    Font newFont = cdaysModeCheck.getFont();    newFont = newFont.deriveFont(newFont.getStyle(), (float) 15);    cdaysModeCheck.setFont(newFont);    cdaysModeCheck.setActionCommand(CDAY_MODE);    cdaysModeCheck.setToolTipText("Display xaxis dates as C-Days");    cdaysModeCheck.addItemListener(this);    resetButton = new JButton(RESET);    resetButton.setFont(newFont);    resetButton.setActionCommand(RESET);    resetButton.setToolTipText("Reset zoom level to original.");    resetButton.addActionListener(new ActionListener() {      public void actionPerformed(ActionEvent e) {        removeAllChartListeners();        //TODO:MWD remove less efficient reset (setDisplayCDay) (takes more time/resources)        //levelChart.setDisplayCDay(displayCDay);        //refillChart.setDisplayCDay(displayCDay);        //demandChart.setDisplayCDay(displayCDay);        levelChart.getChart().reset();        levelChart.resetAxes();        refillChart.getChart().reset();        refillChart.resetAxes();        demandChart.getChart().reset();        demandChart.resetAxes();        reallignChartsByXAxis(levelChart.getFirstXAxis());        pointLabel.setText(INITIAL_POINT_LABEL);        addAllChartListeners();      }    });    shortfallModeCheck = new JCheckBox(SHORTFALL_MODE, displayShortfall);    shortfallModeCheck.setFont(newFont);    shortfallModeCheck.setActionCommand(SHORTFALL_MODE);    shortfallModeCheck.setToolTipText("Display shortfall plots");    InventoryColorTable colorTable = prefData.getColorTable();    shortfallModeCheck.setForeground(colorTable.get(prefData.getColorScheme(), ShortfallChartDataModel.SHORTFALL_SERIES_LABEL));    shortfallModeCheck.setEnabled(false);    shortfallModeCheck.addItemListener(this);    addAllChartListeners();    addAllPickListeners();    // set header and legend to black    // set beveled borders around plot area and chart    //((JLabel)chart.getHeader()).setForeground(Color.black);    //chart.setBorder(BorderFactory.createLoweredBevelBorder());    //chart.getChartArea().setBorder(BorderFactory.createLoweredBevelBorder());    // add chart to panel    setLayout(new GridBagLayout());    mainPanel = new JPanel();    mainPanel.setLayout(new GridBagLayout());    int height = 6;    gridy += height;    mainPanel.add(levelChart, LEVEL_CHART_CONSTRAINTS, LEVEL_CHART_INDEX);    height = 3;    gridy += height;    mainPanel.add(refillChart, REFILL_CHART_CONSTRAINTS, REFILL_CHART_INDEX);    height = 3;    gridy += height;    mainPanel.add(demandChart, DEMAND_CHART_CONSTRAINTS, DEMAND_CHART_INDEX);    height = LEVEL_CHART_HEIGHT + REFILL_CHART_HEIGHT + DEMAND_CHART_HEIGHT;    add(mainPanel, new GridBagConstraints(gridx,                                          GridBagConstraints.RELATIVE,                                          1, height, 1.0, 1.0,                                          GridBagConstraints.CENTER,                                          GridBagConstraints.BOTH,                                          blankInsets, 0, 0));    JPanel checkBoxPanel = new JPanel();//    checkBoxPanel.setLayout(new BorderLayout());//    checkBoxPanel.add(shortfallModeCheck, BorderLayout.WEST);//    checkBoxPanel.add(Box.createHorizontalStrut(4), BorderLayout.CENTER);//    checkBoxPanel.add(cdaysModeCheck, BorderLayout.EAST);    checkBoxPanel.add(shortfallModeCheck);    checkBoxPanel.add(cdaysModeCheck);    checkBoxPanel.add(resetButton);    JPanel bottomPanel = new JPanel();    bottomPanel.setLayout(new BorderLayout());    bottomPanel.add(Box.createHorizontalStrut(20), BorderLayout.WEST);    bottomPanel.add(pointLabel, BorderLayout.CENTER);    bottomPanel.add(checkBoxPanel, BorderLayout.EAST);    height = 1;    gridy += height;    add(bottomPanel, new GridBagConstraints(gridx,                                            GridBagConstraints.RELATIVE,                                            1, height, 1.0, 0.025,                                            GridBagConstraints.CENTER,                                            GridBagConstraints.HORIZONTAL,                                            blankInsets, 0, 0));  }