|
|
|
@ -1,8 +1,10 @@
|
|
|
|
|
package com.fr.design.mainframe.theme.edit.ui; |
|
|
|
|
|
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.general.FRFont; |
|
|
|
|
|
|
|
|
|
import java.awt.Color; |
|
|
|
|
import java.awt.Font; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @author Starryi |
|
|
|
@ -20,7 +22,8 @@ public class LabelUtils {
|
|
|
|
|
public static UILabel createLabel(String title, Color color, int size) { |
|
|
|
|
UILabel uiLabel = new UILabel(title); |
|
|
|
|
uiLabel.setForeground(color); |
|
|
|
|
uiLabel.setFont(uiLabel.getFont().deriveFont(size)); |
|
|
|
|
Font newFont = FRFont.getInstance(uiLabel.getFont().getFontName(), Font.PLAIN, size); |
|
|
|
|
uiLabel.setFont(newFont); |
|
|
|
|
return uiLabel; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|