MCPcopy Create free account
hub / github.com/TheCyaniteProject/exit_code_java / changed

Method changed

src/main/java/exitcode/LoginScreen.java:428–445  ·  view source on GitHub ↗
(ObservableValue<? extends Boolean> ov,
                                Boolean old_val, Boolean new_val)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected