问题
I were created a fxml file using javafx scene builder in netbeans.
How do i convert .fxml file in netbeans to .java? Is that any program to convert it?
I am not very good in fxml so I want to use .java file to code my javafx app.
Please help me. Thank
回答1:
There isn't any support for this kind of thing. The idea is that you are using FXML to visually layout your UI and then connecting it to java using a controller class.
Sidenote: We at e(fx)clipse started a build addon that allows you to converter FXML-Files into Java-Files - because of performance reasons on embedded devices.
回答2:
Is that any program to convert it?
Yes. Netbeans FXML 2 JAVA Converter.
来源:https://stackoverflow.com/questions/15149843/how-to-convert-fxml-to-java