JTable
是否有可能有静态行和动态插入的列(即不是插入行来插入列),如下所示?
DefaultTableModel model = new DefaultTableModel(String[], String[][]);
String rows[] = {"row1","row2"};
String columns[][] = {{"A","100"},{"B","200"},{"C","300"}};
DefaultTableModel model = new DefaultTableModel(rows,columns);
JTable table = new JTable(model);