JavaFX TextField picking up the event

0

I would like to know which event when exiting the object TextField of JavaFx , changes a value of another object.

if (textFieldC1.getText().equals("50")) {
    slider1.setValue(Double.valueOf(textFieldC1.getText()));
}
    
asked by anonymous 29.01.2016 / 20:00

1 answer

0

Try this way:

textFieldC1.setOnAction( (ActionEvent e)-> {
 if(textFieldC1.getText().equals("50")) {
     slider1.setValue(Double.valueOf(textFieldC1.getText()))
 } });
    
31.01.2016 / 14:16