Skip to content

A collection of JavaFX sample projects for CLI, Maven, Gradle, and IDE-based workflows (fork of openjfx/samples)

License

Notifications You must be signed in to change notification settings

danielcregg/samples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenJFX Samples

Java JavaFX License: BSD-3-Clause

Note: This repository is a fork of openjfx/samples.

A comprehensive collection of JavaFX sample projects demonstrating how to build and run JavaFX applications using various build tools and IDEs.

Overview

This repository contains a set of HelloFX sample projects created with JavaFX. Each sample illustrates a minimal HelloWorld-style application that can be compiled and executed using different toolchains -- from the command line, with Maven or Gradle, or directly within popular IDEs such as IntelliJ IDEA, NetBeans, and Eclipse. Both modular and non-modular project configurations are provided.

Features

  • Command Line samples -- Build and run JavaFX apps without an IDE using CLI, Maven, or Gradle
  • IDE samples -- Pre-configured projects for IntelliJ IDEA, NetBeans, and Eclipse
  • Modular and Non-modular -- Examples for both Java module system (JPMS) and classpath-based setups
  • Multiple build tools -- Support for plain Java compilation, Maven, and Gradle

Prerequisites

  • Java JDK 11+ (with JavaFX SDK or as a Maven/Gradle dependency)
  • JavaFX SDK 13+ (for non-Maven/Gradle command line builds)
  • Maven 3.6+ (for Maven-based samples)
  • Gradle 5.0+ (for Gradle-based samples)
  • An IDE of your choice (IntelliJ IDEA, NetBeans, or Eclipse) for IDE-specific samples

Getting Started

Installation

git clone https://github.com/danielcregg/samples.git
cd samples

Usage

Each sample directory contains its own README.md with specific build and run instructions. Navigate to the sample of your choice:

Category Modular Non-Modular
CLI CommandLine/Modular/CLI CommandLine/Non-modular/CLI
Maven CommandLine/Modular/Maven CommandLine/Non-modular/Maven
Gradle CommandLine/Modular/Gradle CommandLine/Non-modular/Gradle
IntelliJ IDE/IntelliJ/Modular IDE/IntelliJ/Non-Modular
NetBeans IDE/NetBeans/Modular IDE/NetBeans/Non-Modular
Eclipse IDE/Eclipse/Modular IDE/Eclipse/Non-Modular

For detailed documentation, visit the OpenJFX Getting Started Guide.

Tech Stack

  • Language: Java
  • UI Framework: JavaFX 13+
  • Build Tools: Maven, Gradle
  • IDEs: IntelliJ IDEA, NetBeans, Eclipse

License

This project is licensed under the BSD 3-Clause License.

About

A collection of JavaFX sample projects for CLI, Maven, Gradle, and IDE-based workflows (fork of openjfx/samples)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 98.1%
  • CSS 1.9%