You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Panel constructor with title produces label with "panel-title" style, however calling setText() the style is not applied.
A workaround is to call setHeading() passing a Label with "panel-title" added manually so I was wondering if this was intentional?
public Panel(String title) {
this();
Label label = new Label(title);
label.getStyleClass().add("panel-title");
setHeading(label);
}
public final void setHeading(Node content) {
this.headingProperty().set(content);
}
/* Label missing style */
public void setText(String text) {
headingProperty().set(new Label(text));
}
The text was updated successfully, but these errors were encountered:
Using Panel constructor with title produces label with "panel-title" style, however calling setText() the style is not applied.
A workaround is to call setHeading() passing a Label with "panel-title" added manually so I was wondering if this was intentional?
The text was updated successfully, but these errors were encountered: