diff --git a/plugins/javaFX/resources/fileTemplates/j2ee/javafx-build.gradle.ft b/plugins/javaFX/resources/fileTemplates/j2ee/javafx-build.gradle.ft
index d911bfa15a11..3e726e62d859 100644
--- a/plugins/javaFX/resources/fileTemplates/j2ee/javafx-build.gradle.ft
+++ b/plugins/javaFX/resources/fileTemplates/j2ee/javafx-build.gradle.ft
@@ -47,7 +47,7 @@ kotlin {
javafx {
version = '${context.getProperty("javafx.version")}'
- modules = ['javafx.controls', 'javafx.fxml'#if ($context.hasLibrary("tilesfx")), 'javafx.web'#end#if ($context.hasLibrary("fxgl")), 'javafx.media'#end]
+ modules = ['javafx.controls', 'javafx.fxml'#if ($context.hasLibrary("tilesfx")), 'javafx.web', 'javafx.swing' #end#if ($context.hasLibrary("fxgl")), 'javafx.media'#end]
}
dependencies {
diff --git a/plugins/javaFX/resources/fileTemplates/j2ee/javafx-pom.xml.ft b/plugins/javaFX/resources/fileTemplates/j2ee/javafx-pom.xml.ft
index d9b74a63e173..d42aa2e2836e 100644
--- a/plugins/javaFX/resources/fileTemplates/j2ee/javafx-pom.xml.ft
+++ b/plugins/javaFX/resources/fileTemplates/j2ee/javafx-pom.xml.ft
@@ -30,7 +30,13 @@
org.openjfx
javafx-web
${context.getProperty("javafx.version")}
- #end
+
+
+ org.openjfx
+ javafx-swing
+ ${context.getProperty("javafx.version")}
+
+ #end
#if ($context.hasLibrary("fxgl"))
org.openjfx
javafx-media
diff --git a/plugins/javaFX/resources/starters/javafx.pom b/plugins/javaFX/resources/starters/javafx.pom
index 09e144e90687..709eb1a1e718 100644
--- a/plugins/javaFX/resources/starters/javafx.pom
+++ b/plugins/javaFX/resources/starters/javafx.pom
@@ -81,7 +81,7 @@
eu.hansolo
tilesfx
- 17.1.17
+ 11.48
com.github.almasb