【问题标题】:how can I create a list of receipts from database in javafx?如何在 javafx 中从数据库中创建收据列表?
【发布时间】:2017-06-06 17:49:15
【问题描述】:

我有两个数据库表,

"product"  table has those fields--> prID, transactionID, itemName, itemQuantity, itemPrice.

"payment"  table has those fields--> pyID, paymentID, paymentType, paymentAmount, itemPrice.

transactionID 和 paymentID 相同。

现在,我喜欢创建当天的收据列表。 您对此有何建议? 我必须使用两个表,并添加一些额外的数据,它需要跨越容器(tabPane)。 这是我正在尝试做的事情的图片。

提前致谢。

【问题讨论】:

  • 使用 TilePane 并将 GridPane 放入此 TilePane 中完成了这项工作。感谢您的提示。

标签: javafx receipt


【解决方案1】:

我使用了 TilePane 并将 GridPane 放在了这个 TilePane 中。 我还创建了标签并在 GridPane 中跨越了这些标签。 到目前为止,我还没有为这个项目完成数据库获取,但我正在寻找的是这个想法。 感谢所有对此主题感兴趣的人。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-10-09
    • 2020-08-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-10-28
    相关资源
    最近更新 更多