摘要:
一.创建表格控件的各种方式:1)调用无参构造函数.JTable table = new JTable();2)以表头和表数据创建表格.Object[][] cellData = {{"row1-col1", "row1-col2"},{"row2-col1", "row2-col2"}};String[] columnNames = {"col1", "col2"};JTable table = new JTable(cellData, columnNames);3)以表头和 阅读全文