(ObservableValue<? extends Boolean> ov,
Boolean old_val, Boolean new_val)
| 426 | //checkBox Listener Event |
| 427 | checkBox.selectedProperty().addListener(new ChangeListener<Boolean>() { |
| 428 | public void changed(ObservableValue<? extends Boolean> ov, |
| 429 | Boolean old_val, Boolean new_val) { |
| 430 | if (checkBox.isSelected()) { |
| 431 | passwordField.setEditable(true); |
| 432 | passBox.setStyle("-fx-background-color: rgba(100, 100, 100, .1);"); |
| 433 | passwordField.setStyle("-fx-text-fill: lightgray;" + "-fx-prompt-text-fill: lightgray;"); |
| 434 | passwordField1.setEditable(true); |
| 435 | passBox1.setStyle("-fx-background-color: rgba(100, 100, 100, .1);" + "-fx-text-fill: lightgray;"); |
| 436 | passwordField1.setStyle("-fx-text-fill: lightgray;" + "-fx-prompt-text-fill: lightgray;"); |
| 437 | } else { |
| 438 | passwordField.setEditable(false); |
| 439 | passBox.setStyle("-fx-background-color: rgba(70, 70, 70, .1);" + "-fx-text-fill: gray;"); |
| 440 | passwordField.setStyle("-fx-text-fill: gray;" + "-fx-prompt-text-fill: gray;"); |
| 441 | passwordField1.setEditable(false); |
| 442 | passBox1.setStyle("-fx-background-color: rgba(70, 70, 70, .1);" + "-fx-text-fill: gray;"); |
| 443 | passwordField1.setStyle("-fx-text-fill: gray;" + "-fx-prompt-text-fill: gray;"); |
| 444 | } |
| 445 | } |
| 446 | }); |
| 447 | |
| 448 |
nothing calls this directly
no outgoing calls
no test coverage detected