public void addTableHeader(final JTableHeader newTableHeader){
  if (!_registredTableHeaders.contains(newTableHeader)) {
    if (_tableHeader == null) {
      _tableHeader=newTableHeader;
    }
    newTableHeader.addMouseListener(_mouseListener);
    newTableHeader.setDefaultRenderer(new SortableHeaderRenderer(newTableHeader.getDefaultRenderer()));
    _registredTableHeaders.add(newTableHeader);
  }
}

public void addTableHeader ( final JTableHeader newTableHeader ) { if ( ! _registredTableHeaders . contains ( newTableHeader ) ) { if ( _tableHeader == null ) { _tableHeader = newTableHeader ; } newTableHeader . addMouseListener ( _mouseListener ) ; newTableHeader . setDefaultRenderer ( new SortableHeaderRenderer ( newTableHeader . getDefaultRenderer ( ) ) ) ; _registredTableHeaders . add ( newTableHeader ) ; } }
for more than one table use this method to register the table header ' s .
