首先要安裝intellij idea 、和javafx_scenebuilder兩個軟件
接著打開intellij idea,點擊file-settings,找到languages & frameworks,找到JavaFX

image.png
接著在右側(cè)的路徑內(nèi)找到scenebuilder的安裝路徑
點擊確定后重啟intellij idea
隨后在新建的javafx項目中
右鍵sample.fxml文件,點擊open in scenebuilder

image.png
這樣我們就能愉快的在intellj idea中使用scenebuilder來布局我們要寫的應(yīng)用了