javafx - Default label in FlowPane -
i have flowpane many borderpanes windows. display water mark or label <empty>
when flowpane empty.
is there solution?
have tried this:
flowpane flowpane = ... ; stackpane container = new stackpane(); label placeholder = new label("no content in flow pane"); placeholder.visibleproperty().bind(bindings.isempty(flowpane.getchildren())); container.getchildren().addall(flowpane, placeholder);
then, obviously, add container ui added flow pane.
Comments
Post a Comment