谢谢

解决方案 »

  1.   

    这样应该可以    
    我就这样写的    table = new SortTable(model) {
          public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel sm =
                (ListSelectionModel) e.getSource();        if (sm.getLeadSelectionIndex() == -1) {
            }
            else {
              int row = table.getSelectedRow();
              if (row >= 0)
                selectRow(row);
            }      }
        };