实现基本功能
This commit is contained in:
13
src/com/dayrain/style/LabelFactory.java
Normal file
13
src/com/dayrain/style/LabelFactory.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package com.dayrain.style;
|
||||
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.text.Font;
|
||||
|
||||
public class LabelFactory {
|
||||
|
||||
public static Label getLabel(String text) {
|
||||
Label label = new Label(text);
|
||||
label.setFont(Font.font("Microsoft YaHei",18));
|
||||
return label;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user