1. javafxports
  2. Untitled project
  3. samples

Source

samples /

Filename Size Date modified Message
HelloPlatform
HelloPreloader
HelloWorld
HelloWorldFxml
J3D
Kokos
WebDemo/src/main/java/org/javafxports/webdemo
gradle/wrapper
1.0 KB
README.md edited online with Bitbucket
566 B
update version of jfxmobile plugin
5.1 KB
refactor gradle build structure and depend on jfxmobile plugin 1.0.0-b5
2.4 KB
refactor gradle build structure and depend on jfxmobile plugin 1.0.0-b5
108 B
update build properties for Kokos to make it work with recent Android developer tools

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