下面列出了怎么用javafx.scene.control.LabelBuilder的API类实例代码及写法,或者点击链接到github查看源代码。
public InsetTextSample() {
String insetTextCss = InsetTextSample.class.getResource("InsetText.css").toExternalForm();
Label label = LabelBuilder.create().text("Label styled as a bar").id("label1").build();
label.getStylesheets().add(insetTextCss);
getChildren().add(label);
}
public InsetTextSample() {
String insetTextCss = InsetTextSample.class.getResource("InsetText.css").toExternalForm();
Label label = LabelBuilder.create().text("Label styled as a bar").id("label1").build();
label.getStylesheets().add(insetTextCss);
getChildren().add(label);
}