I wonder if it's possible to draw nicely some charts using JFreeChart
& ChartPanel
. When I increase window size I want the chart to fill-up the new space, using a GridBayLayout
. But the text labels are streched also and becomes really ugly.
Here is the default size of a given charts:
And here is what it looks like when I maximize the window:
As you can see, the text is badly streched. This is not the behavior of other swing components (like the JLabel of the top-text).
How can I configure my charts/plots to tell the plot to fill-up all new space, but keep legends, axis and any other elements fixed-size ?