IntelliJ IDEA 2023.3 Help

Configure JavaFX Scene Builder

IntelliJ IDEA allows you to open .fxml files in JavaFX Scene Builder right from the IDE after you specify the path to the Scene Builder application in the settings.

Configure Scene Builder in settings

  1. Download and install the latest version of Scene Builder.

  2. In the Settings dialog (Ctrl+Alt+S) , select Languages & Frameworks | JavaFX.

  3. Click the Browse button in the Path to SceneBuilder field.

  4. In the dialog that opens, select the Scene Builder application (executable file) on your computer and click OK.

  5. Apply the changes and close the dialog.

    Specifying path to SceneBuilder

Download Scene Builder from the IDE

If your project doesn't have JavaFX Scene Builder, you will see a notification on the Scene Builder tab for .fxml files.

  • Click Download Scene Builder Kit in the notification to download and install the tool.

    Download Scene Builder Kit

After that you can open .fxml files in Scene Builder right in the editor.

Open files in Scene Builder

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.

  • Scene Builder 2.x. and later.

    If you are using Scene Builder of the version 2.x. and later, the files will be opened in Scene Builder on the Scene Builder tab by default.

    An .fxml file opened in Scene Builder in the IDE
  • Scene Builder 1.x

    If you are using Scene Builder of the version 1.x, the Scene Builder tab is empty. In this case, right-click the necessary .fxml file in the Project tool window and select Open In SceneBuilder from the context menu.

Last modified: 19 March 2024