Scene Builder and <fx:root>

Tom Schindl tom.schindl at
Thu Jul 12 10:00:00 PDT 2012

Am 12.07.12 18:10, schrieb Greg Brown:
>> today I tested the setRoot method on FXMLLoader, introduced with 2.2. After some trial and error (the docs do not seem to be updated)
> The docs were updated fairly recently. If they haven't made it into the latest beta, they should definitely be there for the final release.
>> However, I am wondering how this is intended to integrate with Scene Builder. Maybe as follows?
>> 1. Create some FXML in scene builder.
>> 2. Load in IDE and manually wrap root element (e.g. BorderPane) into a new <fx:root> element with namespace and type attribute.
> I'm not sure what level of support SB offers for fx:root right now, but the idea is that you would use it as follows:
> <fx:root fx:type="javafx.scene.layout.BorderPane">
>> </fx:root>

Is it possible that the attribute has to be named "type" and not "fx:type"?


B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
tom schindl                 geschäftsführer/CEO
eduard-bodem-gasse 5-7/1   A-6020 innsbruck     fax      ++43 512 935833                      phone    ++43 512 935834

More information about the openjfx-dev mailing list