Setting chart size to fixed value in JFreeChart

In JFreeChart graphics, when you resize the application window, the graphics are repainted according to the size of the application window. Is it possible to set the size of the chart to fixed values?

+4
source share
1 answer

Well.
I would suggest a different approach. Without thinking about how to fix this in jfreechart graphics, I think you can easily do this using the java swing layout (for example: GridBagLayout ).

Add a ChartPanel to the rotation panel and set the layout to GridBagLayout .
Hope this helps.

0
source

All Articles