About JTable ()
例如:
String[] title={"a","b","c"};
String[][] str={{"1","11","111"},{"2","22","222"}};
String[][] data=new String[str.length][title.length]; //初始化
DefaultTableModel md =new DefaultTableModel(data, title);
JTable table=new JTable(data, title);
table.setModel(md);
frame.add(new JScrollPane(table)); //放在JScrollPane才能完整显示