如何将FXML转换为JAVA [英] How to Convert FXML to JAVA

查看:319
本文介绍了如何将FXML转换为JAVA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在netbeans中使用javafx场景构建器创建了一个fxml文件。

I were created a fxml file using javafx scene builder in netbeans.

如何将netbeans中的.fxml文件转换为.java?
是否有转换它的程序?

How do i convert .fxml file in netbeans to .java? Is that any program to convert it?

我在fxml中不是很好所以我想使用.java文件来编写我的javafx应用程序。

I am not very good in fxml so I want to use .java file to code my javafx app.

请帮帮我。谢谢

推荐答案

对此类事情没有任何支持。我的想法是你使用FXML在视觉上布局UI,然后使用控制器类将它连接到java。

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.

旁注:我们在e(fx)clipse开始了构建插件,允许您将FXML文件转换为Java文件 - 由于嵌入式设备的性能原因。

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.

这篇关于如何将FXML转换为JAVA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆