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

时间:2016-11-10 23:02:24

标签: javafx

我的代码有问题,我是javafx的新人,我不太确定我在做什么(我做的,只是不够)

我需要找到使用我的控制器类向我的表添加数据的方法(TableView是fxml),我不知道如何做到这一点,建议最好的方式..我想如果我可以创建一个TableView的对象基于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>

0 个答案:

没有答案