public void handleHeaderColumnLeftClick(Point p){
  JTableHeader th=TABLE.getTableHeader();
  int col=th.columnAtPoint(p);
  int c=TABLE.convertColumnIndexToModel(col);
  int oldC=DATA_MODEL.getSortColumn();
  if (c != -1) {
    sortAndMaintainSelection(c);
    th.repaint(th.getHeaderRect(col));
    if (oldC != -1 && oldC != c) {
      int oldCol=TABLE.convertColumnIndexToView(oldC);
      th.repaint(th.getHeaderRect(oldCol));
    }
  }
}

public void handleHeaderColumnLeftClick ( Point p ) { JTableHeader th = TABLE . getTableHeader ( ) ; int col = th . columnAtPoint ( p ) ; int c = TABLE . convertColumnIndexToModel ( col ) ; int oldC = DATA_MODEL . getSortColumn ( ) ; if ( c != - 1 ) { sortAndMaintainSelection ( c ) ; th . repaint ( th . getHeaderRect ( col ) ) ; if ( oldC != - 1 && oldC != c ) { int oldCol = TABLE . convertColumnIndexToView ( oldC ) ; th . repaint ( th . getHeaderRect ( oldCol ) ) ; } } }
sorts the column whose header maps to the given point
