I need to use following method to get screen coordinates.but I am not able.Because when I call this function, ChartPanel is not added its parent Java Form.So it does not know coordinates. how can I force Chartpanel to draw yourself.
chartPanel.getChartRenderingInfo().getPlotInfo().getSubplotInfo(0).getDataArea();