Modifying the title
Modifying the title
Question: Is it possible to not specify a title at all and free up some of that space for the plots?
Re: Modifying the title
Hi Robert,
You should be able to do this:
myChart.setTitles(null);
Regards,
DG.
You should be able to do this:
myChart.setTitles(null);
Regards,
DG.
Re: Modifying the title
DG,
When I try to do this, I get a null pointer exception.
Exception occurred during event dispatching:
java.lang.NullPointerException
at com.jrefinery.chart.JFreeChart.draw(Unknown Source)
at com.jrefinery.chart.JFreeChartPanel.paintComponent(Unknown Source)
at javax.swing.JComponent.paint(JComponent.java:687)
at javax.swing.JComponent.paintChildren(JComponent.java:498)
When I try to do this, I get a null pointer exception.
Exception occurred during event dispatching:
java.lang.NullPointerException
at com.jrefinery.chart.JFreeChart.draw(Unknown Source)
at com.jrefinery.chart.JFreeChartPanel.paintComponent(Unknown Source)
at javax.swing.JComponent.paint(JComponent.java:687)
at javax.swing.JComponent.paintChildren(JComponent.java:498)
Re: Modifying the title
You are right, sorry. It might be safer to set the title list to an empty list:
myChart.setTitles(new ArrayList());
At some point I will clean up the title code.
Regards,
DG.
myChart.setTitles(new ArrayList());
At some point I will clean up the title code.
Regards,
DG.