标签: java fxml
如何从Java类(如android)中初始化在fxml中声明的控件?
class CustomButton extends Button { //..... }
以及在FXML中:
<Pane> <children> <com.app.CustomButton fx:id="id" layoutX="104.0" layoutY="35.0 /> </children> </Pane>