Configure JavaFX Scene Builder
IntelliJ IDEA allows you to open .fxml files in JavaFX Scene Builder right from the IDE so that you can visually design JavaFX interfaces directly.
Open files in Scene Builder in the IDE
When you open an .fxml file in the editor, there are two tabs underneath the editing area: the Text tab is for developing the markup, and the Scene Builder tab is for editing the file in Scene Builder.
Open an .fxml file in the editor.
Switch to the Scene Builder tab.
If your project doesn't have JavaFX Scene Builder, you will see a notification panel prompting you to install Scene Builder Kit.
Click Download Scene Builder Kit on the panel.
After that you can view .fxml files in Scene Builder right in the IDE by switching to the dedicated tab.
Learn how to use JavaFX Scene Builder from JavaFX Scene Builder: User Guide on the Oracle website.
Open files in the Scene Builder application
You can configure the path to Scene Builder in IDE settings. In this case, you will be able to open .fxml files outside the IDE in the Scene Builder application.
Configure the path to Scene Builder
Download and install the latest version of Scene Builder.
Press Ctrl+Alt+S to open settings and then select
.Click in the Path to SceneBuilder field.
In the dialog that opens, specify the path to the Scene Builder executable file on your computer.
The standard paths are:
С:\Users\Username\AppData\Local\SceneBuilder\SceneBuilder.exe
/Applications/SceneBuilder.app
The path on Linux depends on your distribution.
Apply the changes and close the dialog.
Launch Scene Builder from the IDE
Press Alt+1 or go to Project tool window.
in the main menu to open theRight-click an .fxml file you want to open and select Open In SceneBuilder.
The Scene Builder application starts, showing you the contents of the selected file.