feat: help i'm struggling

This commit is contained in:
Emi Boucly 2025-03-18 20:28:21 +01:00
parent 041f721ed5
commit a8b2a0ced6
4 changed files with 25 additions and 23 deletions

View file

@ -27,11 +27,11 @@ public class NewCanvasController implements Initializable {
createButton.setOnAction(this::create);
createButton.disableProperty().bind(validator.containsErrorsProperty());
cancelButton.setOnAction(this::close);
widthTextField.setOnAction(this::create);
validator.createCheck()
.decorates(createButton)
.dependsOn("width", heightTextField.textProperty())
.dependsOn("height", widthTextField.textProperty())
.dependsOn("width", widthTextField.textProperty())
.dependsOn("height", heightTextField.textProperty())
.withMethod(this::checkWidthHeight)
.immediate();
}