📜  更改字体大小 java swing - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:02.414000             🧑  作者: Mango

代码示例1
// make sure the new size is a float, not an int (add f at the end of the number)
label.setFont(label.getFont().deriveFont(newSize));