Sorry for such a simple question but I'm finding it hard to believe that I can't actually view the fxml whilst developing a user interface using JavaFX Scenebuilder.
I'd expect that I should be able to write a user interface using the controls as well as being able to directly write the fxml.
How do I view/edit the fxml of my user interface in SceneBuilder without doing the following: -
i.e. http://www.webhostingplanguide.com/wp-content/uploads/2013/12/CoffeeCup-HTML-Editor.jpg
As above, I would like to be able to work on either the FXML or the WYSIWYG front end.
fxml file opens in the IDE source editor instead of in a Scene Builder window, it may mean that the IDE is not aware of your Scene Builder installation. To verify, select Tools from the NetBeans IDE main menu and then Options. In the Options window, click the Java tab and then the JavaFX tab.
You can edit an FXML file using the Eclipse FXML editor or by opening the file using the JavaFX Scene Builder tool: In the IDE's Package Explorer tab, expand the Test1 and src folders. Right-click the node for the Sample. fxml file and select Open with Scene Builder, as shown in Figure 3-6.
Open project which contains a FXML file. On 'Explorer' window, right click on your FXML file and click 'Open in Scene Builder'.
Use IntelliJ Community edition. It has a built in FXML editor that lets you switch between wysiwyg and code.
Well for now, there is no such option to view the FXML from the Scene Builder. I can confirm it for Scene Builder 2.0
.
Though this can be a great addition to Scene Builder(If not the split screen, just viewing the FXML). You can file a feature request here https://github.com/gluonhq/scenebuilder/issues.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With