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

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

SQL Server - MyCTE query based on 24 hour period (next day) -

php - Using str_replace to translate a MySQL Table in html -