Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Summarizes JavaFX UI debugging: scene-graph inspection, CSS issues, layout diagnostics, state events, and development overlays.
Use this skill ↓92% 88%−4 ptsof test cases passed
Passed 21 of 24 test cases with the skill, and 22 of 24 without it.
3 of 3 safety checks passed
Not used yet
Use this skill when the problem is understanding what the UI is doing: layout issues, CSS application, live scene-graph state, reducer events, thread diagnostics, or development-only debugging overlays.
import javafx.scene.control.Label;
import javafx.scene.input.KeyCode;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.StackPane;
public class InspectableView extends StackPane {
public InspectableView() {
var root = new BorderPane(new Label("Press F12"));
var overlay = new Label("Debug overlay");
overlay.setVisible(false);
overlay.setManaged(false);
setOnKeyPressed(event -> {
if (event.getCode() == KeyCode.F12) {
overlay.setVisible(!overlay.isVisible());
}
});
getChildren().addAll(root, overlay);
setFocusTraversable(true);
}
}
Next to this one in the catalogue, plus more from the same author.