Registry / other / javafx-controls

javafx-controls

JSON →
library25.0.2javamavenunverified

JavaFX UI controls library providing a rich set of user interface components for desktop applications.

<dependency> <groupId>org.openjfx</groupId> <artifactId>javafx-controls</artifactId> <version>25.0.2</version> </dependency>
INSTALL
IMPORT
SIG · JAVAFX-CONTROLS
J
javafx-controls
otherjavav25.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Button
javafx.scene.control.Button

Creates a simple JavaFX application with a button that prints a message on click.

import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.StackPane; import javafx.stage.Stage; public class Quickstart extends Application { @Override public void start(Stage primaryStage) { Button btn = new Button("Click me!"); btn.setOnAction(e -> System.out.println("Hello, JavaFX!")); StackPane root = new StackPane(); root.getChildren().add(btn); primaryStage.setScene(new Scene(root, 300, 250)); primaryStage.show(); } public static void main(String[] args) { launch(args); } }
Debug
Known issues
breakingJavaFX is not included in JDK 11+ by default; you must add it as a dependency or use a JDK that bundles it.
fix
Add the javafx-controls module to your module-path or use a JDK distribution that includes JavaFX (e.g., LibericaFX).
affects: >=11
Upgrade
Version history
25.0.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
javafx-controls — mvn dependency:get javafx-controls · libregistry