File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ All the code samples are not meant to be production quality and I use the follow
3131You 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
3636If 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
5454Find 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
6362and update the JFX_INSTALL value with your OpenJFX install directory.
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ plugins {
66def KOTLIN_VERSION = " 1.3.50"
77def 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"
1011def JFX_INSTALL = ' /Library/Java/javafx/13.0'
1112// END YOUR SETUP
1213
@@ -24,6 +25,7 @@ apply plugin: 'application'
2425mainClassName = ' org.epistatic.app1.Main'
2526
2627javafx {
28+ version = JFX_VERSION
2729 modules = [ ' javafx.controls' , ' javafx.fxml' ]
2830}
2931
You can’t perform that action at this time.
0 commit comments