# IntelliJ: Is it better to create New Project via Java or JavaFX?

**URL:** <https://forum.codewithmosh.com/t/intellij-is-it-better-to-create-new-project-via-java-or-javafx/8350>\
**Category:** Java\
**Created:** [November 7, 2021, 5:25am UTC](https://forum.codewithmosh.com/t/intellij-is-it-better-to-create-new-project-via-java-or-javafx/8350 "2021-11-07T05:25:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ColdCoolMax](https://avatars.discourse-cdn.com/v4/letter/c/b5a626/32.png) [@ColdCoolMax](https://forum.codewithmosh.com/u/ColdCoolMax)\
**Post date:** [November 7, 2021, 5:25am UTC](https://forum.codewithmosh.com/t/intellij-is-it-better-to-create-new-project-via-java-or-javafx/8350/1 "2021-11-07T05:25:44Z")

</div>

Hi guys,  
We have to select the project type when we want to create a New Project in IntelliJ. I noticed that when created a New Project via Java, we are not able to use JavaFX. What is the exact different when making selection when creating New Project, purely depends whether you want to use the JavaFx? If that the case, isn’t it better to always create New Project as JavaFX, since we have the option to use JavaFX later? Is there any way to allowed the use of JavaFX for the exisiting created Java project?

---

<div class="post-metadata">

**Author:** ![ColdCoolMax](https://avatars.discourse-cdn.com/v4/letter/c/b5a626/32.png) [@ColdCoolMax](https://forum.codewithmosh.com/u/ColdCoolMax)\
**Post date:** [November 14, 2021, 10:59am UTC](https://forum.codewithmosh.com/t/intellij-is-it-better-to-create-new-project-via-java-or-javafx/8350/2 "2021-11-14T10:59:38Z")

</div>

guys, any expert mind to explain and enlighten me? that will be very much appreciated.

---

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.codewithmosh.com/u/Paul)\
**Post date:** [November 14, 2021, 2:40pm UTC](https://forum.codewithmosh.com/t/intellij-is-it-better-to-create-new-project-via-java-or-javafx/8350/3 "2021-11-14T14:40:25Z")

</div>

Well for me it is normally fairly straight forward. If I do a web or command line then it is Java, if I want to do a GUI with Swing, I need to decide whether the GUI I am going to build will require JavaFX. Defining your project as Java does not preclude you from implementing JavaFX features in future. It merely adds some boilerplates and structures that you can add later on yourself.

---

<div class="post-metadata">

**Author:** ![vhkishan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/vhkishan/32/2885_2.png) [@vhkishan](https://forum.codewithmosh.com/u/vhkishan)\
**Post date:** [December 3, 2021, 8:23pm UTC](https://forum.codewithmosh.com/t/intellij-is-it-better-to-create-new-project-via-java-or-javafx/8350/4 "2021-12-03T20:23:21Z")

</div>

JavaFX was intended to replace Swing as the standard GUI library for Java SE, but it has been dropped from new Standard Editions while Swing and AWT remain included, supposedly because JavaFX’s marketshare has been “eroded by the rise of ‘mobile first’ and 'web first applications.” With the release of JDK 11 in 2018.

Find more about them → Hirefullstackdeveloperindia(dot)com,  
Mail-\> sales@hirefullstackdeveloperindia(dot)com
