javafx-screen-fxml

Creates JavaFX feature screens with FXML layouts and thin controllers consuming services or DAOs.

1|Updated Jul 7, 2026
One-click install
npx skills add https://github.com/codjeremias-cell/Orquestrador-fable --skill javafx-screen-fxml-codjeremias-cell
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: javafx-screen-fxml
Source: https://github.com/codjeremias-cell/Orquestrador-fable/tree/main/skills/javafx-screen-fxml
Command: npx skills add https://github.com/codjeremias-cell/Orquestrador-fable --skill javafx-screen-fxml-codjeremias-cell

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building JavaFX feature screens (registration forms, listings, detail views) often produces frozen UIs from database calls on the UI thread, fragile FXML that breaks the parser, hardcoded colors that break dark themes, and controllers bloated with business logic. This Skill enforces a disciplined workflow that avoids all of these failure modes. ## Core Features & Use Cases - Mockup-first workflow (RO-06): Presents a visual mockup for approval before writing any FXML or controller code, declaring assumptions instead of blocking on missing inputs. - FXML + thin controller generation: Produces a screen following the project's existing conventions, with empty/loading/error/success states covered, theme tokens instead of fixed hex colors, and Log4j 2 error handling. - Anti-freeze mechanism mirroring: Detects how the project handles database I/O (JavaFX Task with daemon threads vs. synchronous DAO calls for simple form writes, as in the SIGO reference) and mirrors that pattern instead of imposing one. - Use Case: Ask for a customer registration screen consuming a ClienteDAO; the Skill shows a mockup, reads existing screens and the DAO, then delivers FXML plus controller with compile and binding verification. ## Quick Start Use the javafx-screen-fxml skill to create the customer registration screen with FXML and controller consuming the existing ClienteDAO.

Frequently Asked Questions about javafx-screen-fxml

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a JavaFX form screen with FXML and a controller?▼

Define the screen's purpose, the service or DAO it consumes, and the fields to display. The Skill presents a visual mockup for approval first, then generates the FXML and a thin controller following your project's existing conventions.

How do I prevent a JavaFX UI from freezing during database calls?▼

Run database I/O off the UI thread using a JavaFX Task with a daemon thread, updating the UI in onSucceeded or onFailed. However, this Skill first checks how your project handles it, since simple single-record form writes may legitimately run synchronously.

Should a JavaFX controller call a DAO directly or go through a service?▼

It depends on the project's pattern. The Skill mirrors what existing screens do: some projects call the DAO directly for simple forms, others route through a service layer. The controller itself never contains business logic or SQL.

Why does my FXML file fail to load with a parse exception?▼

Common causes include splitting VBox.vgrow or HBox.hgrow attributes across lines and comments containing extra angle brackets that close tags early. Keep these attributes on one line and mark edited blocks with clear delimiters.

When should I not use this JavaFX screen skill?▼

Do not use it for the application shell (window, navigation, alerts), KPI dashboards, business rules, or persistence logic. Those belong to separate concerns: app shell, dashboard, service use case, and DAO layers respectively.