Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Scaffold a JavaFX application with baseline structure, module-aware startup wiring, and a first scene.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -11% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -37% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -20% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 35% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 9% | 0% |
Use this skill to initialize a JavaFX application with a clean entry point, a primary stage, and a first scene that can evolve into a larger UI architecture.
textsrc/main/java/ com/example/app/ MainApp.java ui/ MainView.java
javapackage com.example.app; import com.example.app.ui.MainView; import javafx.application.Application; import javafx.scene.Scene; import javafx.stage.Stage; public class MainApp extends Application { @Override public void start(Stage stage) { var root = new MainView(); var scene = new Scene(root, 960, 640); stage.setTitle("JavaFX App"); stage.setScene(scene); stage.show(); } public static void main(String[] args) { launch(args); } }
javapackage com.example.app.ui; import javafx.geometry.Insets; import javafx.scene.control.Label; import javafx.scene.layout.BorderPane; public class MainView extends BorderPane { public MainView() { setPadding(new Insets(24)); setCenter(new Label("Hello, JavaFX")); } }
javamodule com.example.app { requires javafx.controls; exports com.example.app; exports com.example.app.ui; }
Application.start(...).
WebView, or 3D.
module-info.java must open controller packages when FXML is used.default.
Other measured skills in the registry, with their headline benchmark lift.