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 -

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

Why does a .NET 4.0 program produce a system.unauthorizedAccess error on a Windows Server 2012 machine with .NET 4.5 installed? -