public void handleHeaderColumnPressed(Point p){
  JTableHeader th=TABLE.getTableHeader();
  int col=th.columnAtPoint(p);
  int c=TABLE.convertColumnIndexToModel(col);
  if (c != -1) {
    TABLE.setPressedColumnIndex(c);
    th.repaint(th.getHeaderRect(col));
  }
}

public void handleHeaderColumnPressed ( Point p ) { JTableHeader th = TABLE . getTableHeader ( ) ; int col = th . columnAtPoint ( p ) ; int c = TABLE . convertColumnIndexToModel ( col ) ; if ( c != - 1 ) { TABLE . setPressedColumnIndex ( c ) ; th . repaint ( th . getHeaderRect ( col ) ) ; } }
tell the table something is pressed .
