0
I would like to know which event that when leaving the object TextField
of JavaFx
, changes a value of another object.
if (textFieldC1.getText().equals("50")) {
slider1.setValue(Double.valueOf(textFieldC1.getText()));
}
0
I would like to know which event that when leaving the object TextField
of JavaFx
, changes a value of another object.
if (textFieldC1.getText().equals("50")) {
slider1.setValue(Double.valueOf(textFieldC1.getText()));
}
0
Try it that way:
textFieldC1.setOnAction( (ActionEvent e)-> {
if(textFieldC1.getText().equals("50")) {
slider1.setValue(Double.valueOf(textFieldC1.getText()))
} });
Thank you very much. God bless you!
Browser other questions tagged java javafx
You are not signed in. Login or sign up in order to post.
Try with Focus: http://stackoverflow.com/questions/16549296/how-perform-task-on-javafx-textfield-at-onfocus-and-outfocus
– DiegoAugusto
Didn’t solve Jerfesson Assis
– Willian Silva