Skip to content

Commit b35f6f1

Browse files
Updated to JavaFX version 13 and added JFX_VERSION variable to specifically configure version
1 parent d77f885 commit b35f6f1

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ All the code samples are not meant to be production quality and I use the follow
3131
You will need to install:
3232

3333
* Java 11 or 12 SDK (Oracle or Open JDK)
34-
* [OpenJFX 12](https://gluonhq.com/products/javafx/)
34+
* [OpenJFX 11,12 or 13](https://gluonhq.com/products/javafx/)
3535

3636
If you want to edit FXML and keep your sanity:
3737

@@ -49,15 +49,14 @@ Gradle is bundled as part of the project - no need to install anything.
4949

5050
*The projects does NOT need Gradle to be installed as this is included inside the project via a gradle wrapper*
5151

52-
##### Set JFX_INSTALL variable in build.gradle file
52+
##### Set JFX_VERSION and JFX_INSTALL variable Values in build.gradle file
5353

5454
Find the section in the build.gradle:
5555

5656

5757
// BEGIN YOUR SETUP
58-
59-
def JFX_INSTALL = ** YOUR JFX_INSTALL DIR HERE **
60-
58+
def JFX_VERSION = "13" // or "12" or "11"
59+
def JFX_INSTALL = ** YOUR JFX_INSTALL DIR HERE **
6160
// END YOUR SETUP
6261

6362
and update the JFX_INSTALL value with your OpenJFX install directory.

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ plugins {
66
def KOTLIN_VERSION = "1.3.50"
77
def JAVA_HOME = System.properties['java.home']
88

9-
// BEGIN YOUR SETUP // e.g. /libs/javafx/13.0
9+
// BEGIN YOUR SETUP - set location of JFX 13 (or older version)
10+
def JFX_VERSION = "13"
1011
def JFX_INSTALL = '/Library/Java/javafx/13.0'
1112
// END YOUR SETUP
1213

@@ -24,6 +25,7 @@ apply plugin: 'application'
2425
mainClassName = 'org.epistatic.app1.Main'
2526

2627
javafx {
28+
version = JFX_VERSION
2729
modules = [ 'javafx.controls', 'javafx.fxml' ]
2830
}
2931

0 commit comments

Comments
 (0)