1. javafxports
  2. Untitled project
  3. samples

Overview

HTTPS SSH

Instructions

Unless stated otherwise, all samples are executed as follows, replacing PROJECT with the name of one of the samples listed at the bottom:

  • Android

    Connect your Android device and run ./gradlew :PROJECT:androidInstall

  • iOS

    Connect your iOS device and run ./gradlew :PROJECT:launchIOSDevice

  • Desktop

    ./gradlew :PROJECT:run

Samples in this directory

  • HelloWorld

    This is the most simple JavaFX Application.

  • HelloWorldFXML

    This is the most simple JavaFX Application, using FXML.

  • HelloPreloader

    This is the most simple JavaFX Application, using a custom Preloader.

  • HelloPlatform

    A gradle project that shows how to build and run platform specific code on Android, iOS and desktop using the java.util.ServiceLoader.

  • J3D

    Simple example showing a 3D sphere in JavaFX

  • Kokos

    Kokos is a sample showing how to use JavaFX code in an Android project, created with Android studio.

  • WebDemo

    Simple demo using the JavaFX WebView