How to Convert FXML to JAVA

♀尐吖头ヾ 提交于 2019-12-09 03:39:01

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!