mirror of
https://github.com/Akomry/makeyourownapp-jam.git
synced 2025-12-06 08:43:54 +00:00
feat: help i'm struggling
This commit is contained in:
parent
041f721ed5
commit
a8b2a0ced6
4 changed files with 25 additions and 23 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue