Font myFont=new Font("TimesRoman",Font.BOLD+Font.ITALIC,16);
lab1.setFont(myFont);
后面的16就是字体的大小。

解决方案 »

  1.   

    <input type=button name="press" value="提交数据" onclick="submitform()" style="background-color:  #CCCCFF; color: rgb(0,66,204);font-size: 19pt;">
    只要这样修改font-size:后面的数字的大小就可以了,
      

  2.   

    是什么标签,Label,JLabel,JLabel可以通过UIManager.put(Label.font,new Font("TimesRoman",Font.BOLD+Font.ITALIC,16));来改变所有标签的字体!Label的话Jamesczh(樱木花道) 已经答了