ChartPanel chartPanel = new ChartPanel(chart);
chartPanel.setPreferredSize(new java.awt.Dimension(500, height/vectorSize));
aJPanel.add(chartPanel);
};
mainPane.add(aJPanel);
ApplicationFrame theAppFrame = new ApplicationFrame("Office system calls statistics");
theAppFrame.setContentPane(mainPane);
theAppFrame.pack();
RefineryUtilities.centerFrameOnScreen(theAppFrame);
theAppFrame.setVisible(true);
};