Install any skill in seconds. Free to start, no credit card required.
Get Started Free →johannesrabauer/javafx-ui-layout-navigation
Structure JavaFX scenes with layout panes, root swapping, dialogs, and reusable navigation patterns.
Passed 21 of 22 test cases with the skill, and 20 of 22 without it.
1 fixed20 passed either way1 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.
I am building a JavaFX desktop dashboard. I want a persistent top navigation bar and a main content area that changes when users click navigation buttons. What layout structure and transition approach should I use in JavaFX to handle switching between views without opening separate windows?
| Checked | Without skill | With skill |
|---|---|---|
| Recommends BorderPane as the main application shell layout | Passed | Passed |
| Recommends swapping the center node of the BorderPane when switching views | Missed | Passed |
The instructions your model reads when the skill loads.
Use this skill when the application needs stable scene composition, reusable views, and predictable screen transitions without prematurely introducing a full framework.
import javafx.geometry.Insets;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.StackPane;
public class MainShell extends BorderPane {
public MainShell() {
var homeButton = new Button("Home");
var settingsButton = new Button("Settings");
homeButton.setOnAction(event -> setCenter(createPage("Home")));
settingsButton.setOnAction(event -> setCenter(createPage("Settings")));
var topBar = new HBox(12, homeButton, settingsButton);
topBar.setPadding(new Insets(16));
setTop(topBar);
setCenter(createPage("Home"));
}
private StackPane createPage(String title) {
var pane = new StackPane(new Label(title));
pane.setPadding(new Insets(24));
return pane;
}
}
test cases passed, vs 20 / 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.