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