User Tools

Site Tools


programming:java:javafx

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
programming:java:javafx [2017/06/14 13:59] – ↷ Page moved from programming:javafx to programming:java:javafx skipidarprogramming:java:javafx [2023/11/01 07:31] (current) – ↷ Page moved from camunda:programming:java:javafx to programming:java:javafx skipidar
Line 1: Line 1:
-===== Java FX =====+====== Java FX ======
 The fastest way to create Java FX Applications - is to combine it with Eclipse RCP. The fastest way to create Java FX Applications - is to combine it with Eclipse RCP.
  
Line 34: Line 34:
  
 5. set launch configurations "clear all" 5. set launch configurations "clear all"
 +
 +
 +===== Intellij Idea =====
 +
 +==== JavaFX project ====
 +
 +Building JavaFx apps.
 +
 +You can start creating a JavaFX project. \\
 +The structure won't fit the gradle structure but this can be edited later. \\
 +{{https://i.imgur.com/DC1MChN.png}}
 +
 +To make Idea build the jar, when selecting **Build > Build Project** select "**Include in project build**" \\
 +the jar will be generated under "artifacts" \\
 +{{https://i.imgur.com/Dbj4MNC.png}}
 +
 +
 +
 +modify the project structure, to fit gradle structure \\
 +TODO
 +
 +
 +add build.gradle \\
 +TODO
 +
 +<code>
 +gradle assemble
 +gradle run
 +</code>
 +
 +
 +==== Gradle Project ====
 +It is better to use a Gradle project, because Gradle can be used completely headless, on the CI.
 +And the result will be the same, when using the Gradle mode inside of the IDE.
 +
 +Here is a gradle-stub-project for a JavaFX app
 +<code>
 +https://github.com/skipidar/EmptyProject-JavaFX-Idea-Gradle.git
 +</code>
 +
 +It was created by building rebuilding an Idea project to a maven structure \\
 +and then adding a build.gradle, \\
 +capable to build this project, \\
 +and then reimporting the project to idea as a gradle (not as JavaFX project)
 +
 +To use this project:
 +  - pull the gradle project
 +  - Go to FIle > Open > build.gradle
 +  - Configure the project, by specifying the location of your Java SDK
 +
 +|{{https://i.imgur.com/7aoNpFA.png?400}}|{{https://i.imgur.com/bWxXwNm.png?400}}|
 +
 +
 +
 +== Gradle Tools ==
 +
 +The available Gradle-Tasks are available in IDEA via **View > Tool Window > Gradle**
 +
 +To update the project from build gradle use the sync button at the left part ofr the gradle tools
 +
 +{{https://i.imgur.com/e2eHugE.png}}
 +
 +
 +
 +To reimport the project form build.gradle use **File > Invalidate Caches / Restart**
 +
 +{{https://i.imgur.com/9NVRVsb.png?400}}
 +
 +
 +
 +
 +
 +
programming/java/javafx.1497448749.txt.gz · Last modified: (external edit)