IntelliJ IDEA 2021.1 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 JavaFX Scene Builder in IntelliJ IDEA

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

  2. In the Settings/Preferences dialog Ctrl+Alt+S, select Languages and 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

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: 08 March 2021