Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generating FXML file from JavaFX Java code

 
Tom Hawk
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have inherited a JavaFX applcation where the GUI is created and layed out entirely in Java code. I would like to convert this app to use an FXML file so that I may use SceneBuilder. Is there a way to automatically generate an FXML file from an existing JavaFX application?

TH
 
Dennis Grimbergen
Ranch Hand
Posts: 159
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know there is no tool which can do that. Do you expect such a tool to give nice clean fxml?
The fxml element names match the javafx class names in general. So why not make that fxml by yourself?

To my opinion Scene builder is handy to see what fxml is generated by putting some nodes on some pane. But it's limited in its usage/options compared to what is possible with JavaFX.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic