wood burning stoves 2.0*
The moose likes JavaFX and the fly likes Generating FXML file from JavaFX Java code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JavaFX
Bookmark "Generating FXML file from JavaFX Java code" Watch "Generating FXML file from JavaFX Java code" New topic
Author

Generating FXML file from JavaFX Java code

Tom Hawk
Greenhorn

Joined: Jun 12, 2008
Posts: 2
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

Joined: Nov 04, 2009
Posts: 140

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.


SCJP, SCWCD, SCJD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generating FXML file from JavaFX Java code
 
Similar Threads
Form get input data
setting EventHandlers in View class from Controller
JavaFx internationalization
javafax, button action..NEED HELP PLEASE!!!
JavaFX Scene Builder Help with Charts and such