[thelist] jchart help

sarah disaster7 at yahoo.com
Wed May 2 11:40:13 CDT 2001


I have jchart making some graphs, and at the bottom,
the String FooterText is appended. The code is this:

chart.getFooter().setVisible(true);
chart.getFooter().setFont(new Font("Helvetica",
Font.PLAIN, 10));
((JLabel)chart.getFooter()).setText(FooterText);

Now this works just fine except for one thing. I have
a few \n's in FooterText and they show up as those
stupid squares instead of starting a new line. 

FooterText = ", " + sL[0]  +  "\n Max: " +
Double.toString(maxN) + "\n Min: " +
Double.toString(minN) + "\n Avg: " + strAvg;

Is this something I can't do? Or probably I am doing
it wrong. Any help is appreciated.

TIA,
Sarah


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/




More information about the thelist mailing list