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

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -