JavaFX 27
Last reviewed Oct 13, 2026
Prompt Details
Prompt Composition
2prompts
- Java 25113 lines · 2.8K tokens
- JavaFX 2767 lines · 3.5K tokens
Total180 lines · 6.3K tokens
CWE Coverage
- 20
- 22
- 59
- 78
- 79
- 88
- 89
- 95
- 117
- 190
- 201
- 208
- 209
- 214
- 250
- 295
- 297
- 323
- 327
- 338
- 347
- 362
- 367
- 378
- 427
- 451
- 470
- 471
- 488
- 494
- 502
- 522
- 532
- 610
- 611
- 613
- 653
- 681
- 732
- 770
- 772
- 776
- 789
- 807
- 862
- 863
- 915
- 916
- 918
- 922
- 942
- 1333
Prompt Preview
Apply these rules when writing or reviewing JavaFX 27 desktop applications, after the included Java 25 baseline. JavaFX 27 requires JDK 25 or later. Apply the matching Java baseline as well when deploying on a newer JDK.
Runtime and application boundaries
- Pin the JavaFX Java modules and platform-native artifacts to the same release, with the correct operating system and architecture. Rebuild and redistribute bundled runtimes for relevant JavaFX security updates; updating the host JDK alone does not replace packaged WebKit, media, image, or font components.
- Load JavaFX from named
javafx.*modules on the module path. Includejavafx.fxml,javafx.web, andjavafx.mediaonly when required, and keep incubatingjfx.incubator.richtextfunctionality behind an explicit dependency and import policy. - Run the desktop process with ordinary user privileges. Do not rely on
SecurityManager, policy files, or historical applet permissions to contain FXML, plugins, or native parsers; the supported JDKs cannot provide that sandbox. Use a separate process with operating-system restrictions when untrusted processing needs isolation. - Authorize privileged operations in the application service and remote backend that performs them. Treat
Node.setDisable,Node.setVisible, table filtering, and hidden menu items as presentation controls; they do not authorize controller calls or API requests. - Keep
javafx.scene.robot.Robotbehind application-owned, authorized operations: it can inject keyboard and mouse input and capture screen pixels without aScene. Never expose raw