大多数组件都提供了setFont方法: setFont(String, int, int)JLabel hello=new JLabel("Hello");hello.setFont("Default", Font.PLAIN, 10);
hello.setFont("Courier New", Font.BOLD | Font.ITALIC, 20);
hello.setFont("Courier New", Font.BOLD | Font.ITALIC, 20);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货