Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Convert FXML to JAVA

Tags:

java

javafx

fxml

I created a .fxml file using javafx scene builder in NetBeans.

How can 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.

like image 489
Ken Wong Avatar asked Mar 01 '13 03:03

Ken Wong


2 Answers

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.

like image 94
tomsontom Avatar answered Sep 24 '22 11:09

tomsontom


Is that any program to convert it?

Yes. Netbeans FXML 2 JAVA Converter via Archive.org 2021.03.04 capture.

like image 38
l --marc l Avatar answered Sep 26 '22 11:09

l --marc l