Right-click the folder in which you want to create a new file (for example, the package ch.makery.address.view), then select from the context menu:
New | File
Enter the name of the fxml file you want to create (for example, RootLayout.fxml).
You now have an empty fxml file that you can edit manually.
Manually editing fxml is not really recommended, except for minor tweaks. Therefore, install SceneBuilder and you can edit the new fxml in SceneBuilder by right-clicking on the name of the fxml file in the Idea project window and selecting "Open in SceneBuilder".
See also this related question about what is a JavaFX project in Intellij Idea .
source share