我尝试选择一行,并使用jTable将行值存储到topicId中。然后,我使用刚才获得的topicId从数据库中检索数据。这是我的代码。jTable.addMouseListener(new java.awt.event.MouseAdapter() { if (jTable.getValueAt(jTable.getSele
在我的UI中,我使用了一个带有TableModel.In的JTable,这是已实现的观察者接口的更新方法。我调用重绘method.The删除操作,在添加行时不会更新,但在切换选项卡时会更新(它调用另一个方法,而不是重新绘制)。getModel()).addTableRow(row);
//addTable(row) adds the row to the dataVector that populates the JTable//the