2 回答

呼喚遠(yuǎn)方
TA貢獻(xiàn)1856條經(jīng)驗(yàn) 獲得超11個(gè)贊
label.setFont(f.getFont().deriveFont(Font.PLAIN, 18f));
deriveFont(float size)
Creates a new Font object by replicating the current Font object and applying a new > > size to it.
deriveFont(int style, float size)
Creates a new Font object by replicating this Font object and applying a new style and > size.
Reference: Java8 doc
添加回答
舉報(bào)
0/150
提交
取消