Check if a field is with bindBidirectional (JavaFX)

2

Good morning !! I would like to know how I check if a field is binding (javaFX) I have the following field:

txt2.textProperty().bindBidirectional(txt1.textProperty());

Has a button to enable or disable bindBidirectional, depending on the current state. If bind: disable, if not: enable. valeuu

    
asked by anonymous 16.05.2016 / 14:31

1 answer

0

Just use the .isBound () method of the property:

if(txt2.textProperty().isBound()){
    // Propriedade linkada
}else{
    // Propriedade não linkada
}
    
27.06.2017 / 02:38