• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Generating FXML file from JavaFX Java code  RSS feed

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?

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.

My first bit of advice is that if you are going to be a mime, you shouldn't talk. Even the tiny ad is nodding:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!