下面的示例演示如何使用Font类的setFont()方法显示不同字体的文本。 import java.awt. ... setFont(font); String name = type[f] + " " + stylenames[s]; g.
確定! 回上一頁