Multiple JavaFX projects in project view?
I have multiple old Java projects displayed in IntelliJ in the same project view because I either imported a collection of them from Eclipse like this, or I cloned them in IntelliJ from git in this structure. I often work through code crash courses, with small programs that need to be kept separate but it would make sense to keep all stores in the same git repo.
It seems excessive to create a new project and repo for every single small program (in a tutorial collection) and add clutter up the selection menu on the IntelliJ landing/load page. At the moment I am working on JavaFX, and it took me some time to manually make the changes necessary, copying and moving files, and changes settings just to get two modules/sub-projects to exist in the same parent project. It also seems like it would be overly cumbersome to do this every single time.
There must be some better way I can manage this?
I have just noticed now when taking the screenshot that there is is not visible .iml in the Java collection I mentioned, each module just containing a package and the libraries:

请先登录再写评论。
Your way to group several modules within one project is the right one.
May you elaborate on that? It is possible to make every module independent, but it depends on the project structure.
Can you please tell me what exactly is the correct way to add another new JavaFX module to an existing JavaFX project? I purposely say new to differentiate between modules I am starting fresh and modules/projects that already exist and that are imported.
There is no option to add a new Java FX module so I tried different combinations of creating a new Java module, manually creating the src and package directory, controller and fxml file, setting the src as stc, editing the running configuration and project, and also copying my existing project - into my project as a template before adjusting filenames etc and charging the running configuration to make it work.
I expect there is a much quicker way to start a new JavaFX module in an existing project than the methods I have outlined?
There is no dedicated JavaFX module type. If you choose to create javaFX application from the template, simple java application with created javaFXApplication and corresponding fxml file are created.
You can add your own module template and choose it in "new module" dialog:
Can you please explain all of the steps in creating the user-defined template for Java FX, as you can see I do not have that option on my Ubuntu system:
IntelliJ is my preferred IDE but it is unfortunate there is not an easy way to manage a workspace of multiple projects.
Check the linked documentation page.
You need to create an empty JavaFX project, then use "Tools | Save project as a template". After that you could use the saved template to create new modules.
I missed the link sorry.
This seems to be what I want. I created a new JavaFX project somewhere else and saved it as a template, accepting the placeholder option although when I try to add a new module based on the template to an existing project, or create a new empty project in the brocode-javafx directory, and then try to add the module template with the module file location and content root set to /home/daire/cloud/code/IdeaProjects/BroCode/brocode-javafx/stages I receive the following error:
Here is the bug request about that: https://youtrack.jetbrains.com/issue/IDEA-177248
Seems this error could be just ignored.
Thank you for coming back to me.
The solution that worked for me is from the comments of that link although in the template in addition to the existing src directory that was already there, I created a root directory with a src directory inside it, and I moved my fxml file into that. When the template is loaded the root0 directory is gone and the src directory inside it is merged into the normal src directory.
This is resolved.