Jonathan Beaudoin Jonathan Beaudoin -4 years ago 282
Java Question

Tool To Convert FXML To Java Code

Hello I'm looking for a AIO tool that can convert my FXML code to Java code. I use intellij and I was wondering if such tool exists?

Code:

<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.Pane?>

<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="69.0"
prefWidth="325.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1">
<children>
<TextField fx:id="delay" layoutX="195.0" layoutY="10.0" prefHeight="25.0" prefWidth="114.0"/>
<Label layoutX="14.0" layoutY="14.0" text="Delay (milliseconds): "/>
<Label layoutX="195.0" layoutY="38.0" text="No decimal numbers!"/>
</children>
</Pane>


Thanks!

Answer Source

I found an Eclipse plugin that can do this for you.

http://downloads.efxclipse.org/fxml-compiler.zip

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download