你看JAVADOC啊The TableModel interface specifies the methods the JTable will use to interrogate a tabular data model. The JTable can be set up to display any data model which implements the TableModel interface with a couple of lines of code:
TableModel myData = new MyTableModel();
JTable table = new JTable(myData);
For further documentation, see Creating a Table Model in The Java Tutorial.
TableModel myData = new MyTableModel();
JTable table = new JTable(myData);
For further documentation, see Creating a Table Model in The Java Tutorial.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货