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

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -