用法: myTableModel=new ResultSetTableModel(m_Rs); sorterTableModel = new SortTableModel(myTableModel); sorterTableModel.addMouseListenerToHeaderInTable(jTable1); jTable1.setModel(sorterTableModel);