java - disabling a node without disable its children in javafx -


is there solution disable node in javafx without disabling children ? want disable nodes in pane except 1 of them dynamically. tried solution , other solutions doesn't work , think has bad performance!

 node.getparent().requestfocus();    for(int i=0 ; i<pane.getchildren().size() ; i++){        if( !pane.getchildren().get(i).isfocused()){            pane.getchildren().get(i).setdisable(true);         }     } 

edited:

also tried solution: added transparent pane main pain , add special node . doesb't work complex components because should keep sizes , locations of it's children !

i want user interact 1 node of whole scene , other nodes should disable .

the current javadoc of booleanproperty disableproperty() of node says: "...... setting disable true cause node , subnodes become disabled.......

https://docs.oracle.com/javase/8/javafx/api/javafx/scene/node.html#setdisable-boolean-

https://docs.oracle.com/javase/8/javafx/api/javafx/scene/node.html#disableproperty

so cannot disable 1 node without children.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -