4

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

penguru
  • 4,342
  • 11
  • 46
  • 56

1 Answers1

0

Well.
I would like to suggest a different approach. Without worrying to fix it in jfreechart graphics, I think you can easily do it using a java swing layout (e.g: GridBagLayout) .

Add the ChartPanel to a swing Panel and set the layout to GridBagLayout.
Hope this helps..

Christian Specht
  • 35,843
  • 15
  • 128
  • 182
user239387
  • 13
  • 1
  • 3