A ready-to-run JavaFX Hello World application configured for GitHub Codespaces with a built-in virtual desktop environment.
This project provides a minimal JavaFX application that runs entirely within GitHub Codespaces. It uses a devcontainer configuration with desktop-lite (noVNC) to render the JavaFX GUI directly in your browser -- no local Java or display setup required.
- Zero-config JavaFX development -- Works out of the box in GitHub Codespaces
- Browser-based desktop -- Renders the JavaFX GUI via noVNC virtual desktop
- Pre-configured Java 21 -- Uses Azul Zulu JDK with JavaFX bundled
- VS Code Java support -- Includes the Java Extension Pack for IntelliSense, debugging, and more
- A GitHub account with access to GitHub Codespaces
- Click the green Code button on the repository page.
- Select the Codespaces tab and click Create codespace on main.
- Wait for the devcontainer to build and initialize.
- Once the Codespace is ready, open the integrated terminal.
- Compile and run the application:
javac HelloWorld.java && java HelloWorld - The virtual desktop preview (port
6080) will open automatically in a Simple Browser tab. Click into it to see the JavaFX window with a "Say 'Hello World'" button.
| Technology | Purpose |
|---|---|
| Java 21 (Zulu FX) | Runtime and language |
| JavaFX | GUI framework |
| GitHub Codespaces | Cloud development environment |
| noVNC / desktop-lite | Browser-based virtual desktop |
This project is licensed under the MIT License.