Tool To Convert FXML To Java Code

匿名 (未验证) 提交于 2019-12-03 01:26:01

问题:

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!

回答1:

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

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



回答2:

For NetBeans IDE Users,

FXML 2 JAVA Converter - Plugin

This plugin helps to generate abstract class for fxml document automatically... and then implement the abstract class for your appropriate use.



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