Using japanese characters



public class JapaneseChart {
   public static void main(String[] argv) {
     BarChart chart = new BarChart();

     Font font = new Font("Monospaced", Font.PLAIN, 30);
     chart.setFont("titleFont", font);
     chart.setTitleOn(true);
     chart.setTitle("\u30f3\u30d5\u30c8\u30a6\u30a7\u30a2");

     chart.setSampleCount(5);
     double values[] = {90, 70, 50, 30, 10};
     chart.setSampleValues(0, values);

     com.objectplanet.chart.NonFlickerPanel p =
      new com.objectplanet.chart.NonFlickerPanel(new BorderLayout());
     p.add("Center", chart);
     Frame f = new Frame();
     f.add("Center", p);
     f.setSize(300, 210);
     f.show();
   }
}

To run this example your system locale has to be set to Japanese
and the font.properties file in your jdk home directory has to be
replaced with font.properties.ja