Install any skill in seconds. Free to start, no credit card required.
Get Started Free →johannesrabauer/javafx-properties-bindings
Build JavaFX UIs with core observable properties, bindings, and listeners.
Passed 20 of 22 test cases with the skill, and 19 of 22 without it.
1 fixed19 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
Write a JavaFX custom component extending VBox that manages an internal integer count property initialized to 0. It should display a Label formatted as 'Count: <number>' bound to the count, and a Button that increments the count property when clicked. Expose the count property.
| Checked | Without skill | With skill |
|---|---|---|
| Uses SimpleIntegerProperty for the count backing field | Passed | Passed |
| Binds label.textProperty() to the count using Bindings.format | Missed | Passed |
| Updates the count property inside the button event handler | Passed | Passed |
The instructions your model reads when the skill loads.
Use this skill when UI state should stay synchronized without manual widget updates scattered throughout the codebase.
import javafx.beans.binding.Bindings;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.VBox;
public class CounterView extends VBox {
private final IntegerProperty count = new SimpleIntegerProperty(0);
public CounterView() {
var label = new Label();
label.textProperty().bind(Bindings.format("Count: %d", count));
var increment = new Button("Increment");
increment.setOnAction(event -> count.set(count.get() + 1));
getChildren().addAll(label, increment);
}
public IntegerProperty countProperty() {
return count;
}
}
test cases passed, vs 19 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.