可以:
JTextArea editor=new JTextArea();
Font f=new Font("Times New Roman", Font.BOLD | Font.ITALIC, 20);
editor.setFont(f);
其实直接就可以:
editor.setFont(new Font("Times New Roman", 0, 20));
以上仅供参考.
JTextArea editor=new JTextArea();
Font f=new Font("Times New Roman", Font.BOLD | Font.ITALIC, 20);
editor.setFont(f);
其实直接就可以:
editor.setFont(new Font("Times New Roman", 0, 20));
以上仅供参考.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货