← All projects
Mobile UI

Gluon Mobile

Gluon Mobile brings JavaFX to iOS and Android platforms, enabling developers to write desktop and mobile applications from a single codebase. Developed by Gluon HQ, who co-lead the OpenJFX...

Status Production-ready, Actively Maintained
Java 17+ (desktop), 11-17 (mobile via GraalVM)
Learning curve Moderate
Latest release JavaFX 25.0.2 (Jan 2026)
Gluon Mobile interface

Gluon Mobile brings JavaFX to iOS and Android platforms, enabling developers to write desktop and mobile applications from a single codebase. Developed by Gluon HQ, who co-lead the OpenJFX project itself, the framework provides commercial JavaFX ports with native integrations for mobile platforms. Gluon provides Scene Builder for drag-and-drop UI design, GluonFX Maven and Gradle plugins for building, and optional cloud build services. Note on mobile deployment: The framework uses GraalVM native image compilation for mobile deployment (as iOS requires ahead-of-time compilation). GraalVM native image has some Java language and API limitations compared to standard JVM execution. The framework includes commercial long-term support options. For teams already invested in JavaFX for desktop who want to extend to mobile, Gluon Mobile provides a natural migration path.

Code Example


                import com.gluonhq.charm.glisten.application.AppManager;
                import com.gluonhq.charm.glisten.control.AppBar;
                import com.gluonhq.charm.glisten.mvc.View;
                import javafx.application.Application;
                import javafx.scene.control.Label;
                import javafx.stage.Stage;
                
                public class HelloGluon extends Application {
                    @Override
                    public void start(Stage stage) {
                        View view = new View("Hello") {
                            {
                                setCenter(new Label("Hello, Gluon Mobile!"));
                            }
                            
                            @Override
                            protected void updateAppBar(AppBar appBar) {
                                appBar.setTitleText("Gluon Example");
                            }
                        };
                        
                        AppManager.initialize();
                        AppManager.getInstance().addViewFactory("hello", () -> view);
                        AppManager.getInstance().start(stage);
                    }
                }