The problem is that I need to paint some rectangles over the subplots, and I need the width, height and coordinates of both subplots.

It works but only when the screen resolution's height is under 800px or something like that. When the height grows over 800px, the height of the subplots stops growing (while the subplots in fact are growing!).
I've made a SSCCE to show the problem, basically the error comes from:
Code: Select all
chartPanel.getChartRenderingInfo().getPlotInfo().getSubplotInfo(0).getDataArea();
You can find the SSCCE on the first link (SO).