📄 japanesechart.html
字号:
<html>
<body>
<font face="verdana, arial, helvetica" size=-1>
<br>
<p>
Using japanese characters <br>
<br>
<br>
<img src="images/Japanese_Chart.gif" border=0>
<br>
<p>
public class JapaneseChart {<br>
public static void main(String[] argv) {<br>
BarChart chart = new BarChart();<br>
<br>
Font font = new Font("Monospaced", Font.PLAIN, 30);<br>
chart.setFont("titleFont", font);<br>
chart.setTitleOn(true);<br>
chart.setTitle("\u30f3\u30d5\u30c8\u30a6\u30a7\u30a2");<br>
<br>
chart.setSampleCount(5);<br>
double values[] = {90, 70, 50, 30, 10};<br>
chart.setSampleValues(0, values);<br>
<br>
com.objectplanet.chart.NonFlickerPanel p = <br>
new com.objectplanet.chart.NonFlickerPanel(new BorderLayout());<br>
p.add("Center", chart);<br>
Frame f = new Frame();<br>
f.add("Center", p);<br>
f.setSize(300, 210);<br>
f.show();<br>
}<br>
}<br>
<p>
To run this example your system locale has to be set to Japanese<br>
and the font.properties file in your jdk home directory has to be<br>
replaced with font.properties.ja<br>
<font>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -