if (e.isControlDown() && table. isCellSelected(table.rowAtPoint(begin),table.columnAtPoint(begin))) { table.getSelectionModel(). removeSelectionInterval(table.rowAtPoint(begin), table.rowAtPoint(begin)); table.getColumnModel().getSelectionModel(). removeSelectionInterval(table.columnAtPoint(begin), table.columnAtPoint(begin)); } else
    public void mousePressed(MouseEvent e)     {      begin = new Point(e.getX(), e.getY());      curr = new Point(e.getX(), e.getY());      updateSelection(e.isControlDown());          }