SceneBuilder is a visual layout tool for JavaFX. You drag controls and layout panes onto a canvas, set their properties, and it saves the result as an FXML file that your Java code loads at runtime. Its main value is separating the user interface description from application logic.
SceneBuilder is not part of the JDK or of JavaFX itself. It is a standalone application, maintained today by Gluon, and it also integrates with IDEs such as IntelliJ IDEA, Eclipse and NetBeans.
JavaFX can build interfaces in code, but nested layouts become hard to read and tweak. SceneBuilder lets you design the same scene graph visually and writes standard FXML, an XML format that JavaFX parses with FXMLLoader. The tool contains no runtime library: your application needs only JavaFX, and the .fxml file stays plain text that you can edit by hand, diff and review.
| Feature | Benefit |
|---|---|
| Drag and drop of controls and layouts | Quick prototypes of forms, tables and dashboards |
| Properties, Layout and Code inspectors | Set sizes, margins, alignment, fx:id and event handler names without code |
| CSS support | Attach stylesheets or set a style class and see the result immediately |
| Preview window | Check how the layout resizes before running the app |
| Controller binding | Declare the controller class so the tool lists available handlers and fields |
| Custom controls | Import third-party JavaFX libraries or your own components into the library panel |
A minimal FXML file produced by SceneBuilder looks like this.
The controller connects the file to your logic through fx:id fields and # handler names.
Finally, load the file in the application class.
@FXML makes private fields and methods visible to the loader. If the path to the .fxml resource is wrong, getResource returns null and loading fails, so keep the file next to the controller package in src/main/resources.
javafx-maven-plugin and Gradle JavaFX plugin..fxml files from the project tree.fx:id and an onAction handler.mvn javafx:run or your IDE run configuration.SceneBuilder is excellent for forms and standard layouts and keeps design reviewable as text. It has limits worth knowing.
fx:include for shared parts.Yes. It is open source and free to download, and it is maintained by Gluon with community contributions.
No. FXML is plain XML and you can write it in any editor. SceneBuilder just makes the design faster and visual.
No. It generates FXML. You write the controller in Java and bind it through fx:controller, fx:id and handler names.
Yes. The tool edits files only. Use the JavaFX Maven or Gradle plugins to add the runtime modules and run the app.
SceneBuilder is a drag and drop designer that produces FXML for JavaFX applications. It speeds up layout work, supports CSS and previews, and keeps the interface separate from controller code. It is standalone and not bundled with the JDK, so install JavaFX separately, bind an FXML file to a controller, and load it with FXMLLoader.