Java GUI編程(4)---組件中設置字體Font

Font類設置GUI界面的字體樣式, 包括字體類型(宋體、仿宋)、字體風格(斜體字、加粗)、 字號大小(默認單位pt)。java 構造函數app Font(String familyName,int style,int size)函數 Font f = new Font("仿宋", Font.BOLD+ Font.ITALIC,12);字體 style值,經常使用3d Font.PLAIN //普
相關文章
相關標籤/搜索