我有如下代码:
table_1 = new JTable();
table_1.setModel(new DefaultTableModel(
new Object[][] {
{null, null, null, null, null, null, null},
},
new String[] {
"Product Code", "Description", "Price", "Quantity", "Total ", "Discount", "Remarks"
}
));
我想查看列标题名称。我尝试使用此代码,但看不到名称。我想知道该怎么做?
另外,我还想设置来自JTextField
.