JavaFX将FXML标记转换为控制器类的对象

JavaFX将FXML标记转换为控制器类的对象,javafx,Javafx,我的代码有问题,我是javafx的新手,我根本不确定我在做什么(我做ofc,只是不够) 我需要用我的控制器类找到将数据添加到我的表(TableView是fxml)的方法,我不知道如何做,建议最好的方法。。我想也许我可以基于fxml表视图创建该表视图的对象 帮帮伙计们 <TableView fx:id="tableView" prefHeight="200.0" prefWidth="200.0" StackPane.alignment="CENTER"> <

我的代码有问题,我是javafx的新手,我根本不确定我在做什么(我做ofc,只是不够)

我需要用我的控制器类找到将数据添加到我的表(TableView是fxml)的方法,我不知道如何做,建议最好的方法。。我想也许我可以基于fxml表视图创建该表视图的对象

帮帮伙计们

<TableView fx:id="tableView" prefHeight="200.0" prefWidth="200.0" StackPane.alignment="CENTER">
          <columns>
            <TableColumn editable="false" maxWidth="90.0" prefWidth="78.0" text="Fecha" />
            <TableColumn editable="false" maxWidth="90.0" text="Hora" />
              <TableColumn editable="false" maxWidth="90.0" prefWidth="79.0" text="Folio" />
              <TableColumn editable="false" maxWidth="90.0" prefWidth="77.0" text="Estacion" />
              <TableColumn editable="false" maxWidth="190.0" prefWidth="160.0" text="Circuito" />
              <TableColumn editable="false" maxWidth="190.0" prefWidth="160.0" text="Receta" />
              <TableColumn editable="false" maxWidth="190.0" prefWidth="160.0" text="Usuario" />
          </columns>
           <StackPane.margin>
              <Insets bottom="8.0" left="8.0" top="8.0" />
           </StackPane.margin>
        </TableView>


您应该阅读本教程,您有99%的可能性获得解决方案;)。这里有一个@GoXR3Plus链接。很多人也喜欢。你应该通过本教程,你有99%的可能性得到你的解决方案;)。这里有一个@GoXR3Plus链接。很多人也喜欢。