Every time I create a new JavaFX project in IntelliJ it loads a simple HelloWorld project in it. How can I make it empty instead (without the need to delete those .java files every time)? Also how can I choose to create the project without a building system (as you can see in the picture, I'm always forced to create the project with Maven or Gradle)
How to create an empty JavaFX project in IntelliJ
3.4k Views Asked by Youssef Idraiss At
1
There are 1 best solutions below
Related Questions in INTELLIJ-IDEA
- Gradle 8.7 cannot find installed JDK 22 in IntelliJ
- LiveTemplate for TODO shortcut seems not working
- Jetbrains Intellij Works but Fleet does not : "is not recognized as an internal or external command, operable program or batch file."
- Why is there no help text when i write "." in IntelliJ?
- How to enable Kotlin REPL autocomplete
- Selenium error: SessionNotCreatedException | Java, Firefox, everything is updated and should be compatible
- Ubuntu-22.04 File watcher failed repeatedly and has been disabled (External file changes sync might be slow)
- IntelliJ Typescript NoSuchElementException
- I am trying to use h2 in-memory db from my spring boot application, my spring boot version is 3.1.10, but its not connecting to h2 properly
- Is there a new way to undo and redo in the new version of intelliJ
- How to debug a Kotlin/Native application in IntelliJ?
- Why rebuild module does not recompile dependency module, but build module does in IntelliJ Idea?
- Intelij ultimate and spring boot giving me errors
- Minecraft Mod not adding content
- In IntelliJ IDEA Community Edition, can you generate a dependency tree for Maven projects?
Related Questions in JAVAFX
- Function for making the code wait in javafx
- JavaFX build generating a blank gui with primary view and secondary view buttons
- JavaFX SwingNode instantiation fails with exception
- I want to understand modularity in java. When compiling my app I have a ResolutionException
- Importing Jython into a JavaFX application
- gluon attach audio doesn't play any sound on android
- Using javaFx, how to distinguish between return-key and enter-key on the numpad?
- Displaying a Hashmap in a TableView in JavaFX
- HBox doesn't fill parent GridPane when rotated by 90 degrees
- Run java program
- Setting up MongoDB with JavaFX in Intellij, MongoDB external Jar files throwing errors
- JavaFX not support GPU hardware decoding?
- JavaFX resize ImageView in center of BorderPane
- In Javafx how to access object of a component which is under an overridden method? Problem related with TableView
- How to style rounded corners of a TextArea in JavaFX
Related Questions in INTELLIJ-14
- java: error: invalid source release: 15 SpringBoot application
- How to Handle (Ghost) Duplicate Files and Use Drag Move in Intellij Language Resource Bundle?
- IntelliJ Run Button Resulting in Class Not Found Exception (Mac)
- Intellij Http Client - use function() import from external js to initialize an inplace variable
- How to exclude one of the variants of com.google.guava dependency while building Gradle projects
- Ktlint-gradle - create/override lint rules
- Certificate error while running JUnit in Spring Java application in IntelliJ
- I get a red INFO line in IntelliJ when running Karate with Cucumber Reports even though test passes
- Creating a file object only works when I use an absolute path
- Programmatically Set Default Project SDK in IntelliJ
- Not able to start Intellij
- IntelliJ Plugin fails at loading dependencies from gradle project
- VisualSVN with Intellij
- Does anybody knows how to add Ivy dependencies into a java web project with IntelliJ?
- Trouble Fetching GitHub Pull Requests by Date Range in Java Using OkHttp
Related Questions in INTELLIJ-13
- Remove all files from another folder that exist in the Unversioned Files section in IntelliJ
- IntelliJ auto build and I can't debug my application anymore after I change my code
- Error While trying to run feature from resource package. Using Cucumber Testng
- The error message suggests that there is a problem with finding the module com.example.demo3 during the initialization of the Java application
- Why is IntelliJ stuck on Resolving Dependencies for my project?
- How can I change the template for kotlins toString() code generation in intellij?
- Error. JavaFX runtime components are missing, and required to run this application
- Angular CLI for springboot app in IntelliJ
- Protobuf new field not showing
- Trying to copy a jar file at compile time (or packaging time) using maven and intellij
- intellij IDEA debug mode: Exception in thread "main" java.lang.ClassNotFoundException: kotlinx.coroutines.debug.AgentPremain
- How to search only through selected files/folders in IntelliJ?
- Could not find main class com/intellij/idea/Main
- Spaces between editor line numbers intellij
- Running a java class that inherits from other java classes using command line prompt
Related Questions in INTELLIJ-15
- Why am I getting "scala: error while loading AccessFlag" with IntelliJ CE?
- Best way to remove all "target" folders in IntelliJ Idea
- How to check for missing keys in i18n YAML files in a Vue project within IntelliJ
- sun.security.provider.certpathS .SunCertPathBuilderException: unable to find valid certification path to requested target
- IntelliJ Idea Run Option Missing
- How to configure Intellij Idea to compile files induvidually without building the whole folder?
- Autoclose brackets/parentheses inside a string in PyCharm
- Could not find main class com/intellij/idea/Main
- synchronize multiple modules with intelIj
- Not able to resolve Maven dependencies in IntelliJ
- InteliJ Bookmarks window is not visible
- Restart IntelliJ from command line - linux
- How to properly setup Maven with tests being a separate module
- IntelliJ - easy way to add all environment variables and PATH locations to the run config
- How to create an empty JavaFX project in IntelliJ
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

enter link description hereWhen creating the new project, choose "Java" instead of "JavaFX".
A JavaFX application is just a Java application, so if you don't want the additional things which IntelliJ is doing when you choose to create a JavaFX project (e.g. supplying example code and associating with a build system like Maven or Gradle), you can just choose a basic Java application project from the wizard and it won't do those other things.
See the section in openjfx.io documentation titled "JavaFX and IntelliJ IDEA" for other steps you need to take:
Set the project JDK
Create a JavaFX library in Idea
Add VM options for the module path
Run -> Edit Configurations...
For windows use quotes around the path and
\rather than/.Run the project
You might also need to take the actions identified in the accepted answer to:
But that answer was written a while back and setting the resource copy configuration to include JavaFX fxml and css files might not be needed anymore.
Now, you might think that is annoying amount of things to do, and I might agree with you.
Update Aug 2023
Instructions above are advice for creating an empty project. For most people, I think creating a project with example code is a better option. Then you start with a project you know will work. To do that I recommend using the Idea wizard to create a new JavaFX project:
It is easy enough then to manually remove (or add to) parts of the sample project to get the setup you want for your project.