Hi,
We are trying to get JFreeChart to run on IBM AIX. Our code runs fine on NT, but for AIX we have to use the PJA implementation so we have headless support. We have installed PJA and it runs fine for the first two demos. But on the last two demos we get an exception. Has anoyone else encountered this problem?
Regards,
Stephen
IBM AIX and PJA problem
Re: IBM AIX and PJA problem
it should be a problem with font (AIX hasn't good font) ? SO try this :
JFreeChart chart;
chart.getXYPlot().getDomainAxis().setLabelFont(new Font("Lucida Sans", Font.PLAIN, 10));
chart.getXYPlot().getDomainAxis().setTickLabelFont(new Font("Lucida Sans", Font.PLAIN, 10));
chart.getXYPlot().getRangeAxis().setLabelFont(new Font("Lucida Sans", Font.PLAIN, 10));
chart.getXYPlot().getRangeAxis().setTickLabelFont(new Font("Lucida Sans", Font.PLAIN, 10));
((StandardLegend) chart.getLegend()).setItemFont(new Font("Lucida Sans", Font.PLAIN, 10));
JFreeChart chart;
chart.getXYPlot().getDomainAxis().setLabelFont(new Font("Lucida Sans", Font.PLAIN, 10));
chart.getXYPlot().getDomainAxis().setTickLabelFont(new Font("Lucida Sans", Font.PLAIN, 10));
chart.getXYPlot().getRangeAxis().setLabelFont(new Font("Lucida Sans", Font.PLAIN, 10));
chart.getXYPlot().getRangeAxis().setTickLabelFont(new Font("Lucida Sans", Font.PLAIN, 10));
((StandardLegend) chart.getLegend()).setItemFont(new Font("Lucida Sans", Font.PLAIN, 10));
Re: IBM AIX and PJA problem
Hi Lyonnel,
Thanks for the info. We got it to work!
- Stephen
Thanks for the info. We got it to work!
- Stephen
Re: IBM AIX and PJA problem
Does that mean AIX doesn't support "SansSerif" as a font (the default in JFreeChart)?
Regards,
DG.
Regards,
DG.
Re: IBM AIX and PJA problem
AIX hasn't "SansSerif" font in its OS,
so We can use only the different fonts of JDK for Jfreechart /AIX
so We can use only the different fonts of JDK for Jfreechart /AIX
Re: IBM AIX and PJA problem
Thanks for the answer. I think my question wasn't well phrased though. "SansSerif" is a Java logical font name, the JDK should map it to a real font. So I'm wondering why this doesn't work on AIX. Is it a problem with the JDK on AIX?
Regards,
DG
Regards,
DG
Re: IBM AIX and PJA problem
It seems to be a problem with the AIX JDK implementation, as PJA does not have this problem on other platforms.