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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -