I want to show/hide the title of the graph. Why is the code not working:
Code: Select all
chart.getTitle().setVisible(showTitle);
If I do
Code: Select all
chart.setTitle("");
Code: Select all
chart.setTitle(oldTitle);
As I see there is no way to show/hide the title of a graph without to re-create the whole JFreeChart?
Regards, Erwin.