setFont
public void setFont(Font f)Sets the current font. This removes cached row height and column width so the new font will be reflected, and calls revalidate().
Parameters:
f - the font to use as the current font
Overrides:
setFont in class JComponent好像用forte for java里面可以选择的字体多很多,基本上自己机器里面安装的自己都可以选择,不过在别人机器里面运行可能会找不到字体
public void setFont(Font f)Sets the current font. This removes cached row height and column width so the new font will be reflected, and calls revalidate().
Parameters:
f - the font to use as the current font
Overrides:
setFont in class JComponent好像用forte for java里面可以选择的字体多很多,基本上自己机器里面安装的自己都可以选择,不过在别人机器里面运行可能会找不到字体
那我如何知道某种字体的名字呢?
比如我想设置宋体 9号 的正常字体
应该是如何写呢
Font font1 = new Font(?,?,?)
jTextArea1.setfont(font1)
java如何获取字体?
请各位大虾指教。 //bow
因为getFontList()只是得到字体的列表,
并没有办法让我得到具体的字体啊
Font font1 = new Font(?,?,?)
jTextArea1.setfont(font1) 其实你认为小,你把字号调大一点不就行了!
第二行Italic怎么办?
就知道哪里有东西, 范不着问了.