更新时间:2023-12-05 10:32:10
也许您没有正确地将 JTable 添加到屏幕?您可以尝试一个简单的测试:
Maybe you are not adding the JTable to the screen properly? You can try a simple test:
JFrame frame = new JFrame();
frame.setExtendedState(Frame.MAXIMIZED_BOTH);
frame.setContentPane(transTable);
frame.setVisible(true);
如果 getTransactions()
确实返回行 - 您将能够看到它们(没有列标题,因为它们未在您的代码中定义).
If indeed getTransactions()
return rows - you will be able to see them (without column headers as they are not defined in your code).