}
public void mouseClicked(MouseEvent e){
int col = table.columnAtPoint(e.getPoint());
if (SwingUtilities.isLeftMouseButton(e)) {
SpreadSheetSelectionModel selection=table.getSelection();
table.getRowHeader().clearSelection();
selection.getColumnSelection().setSelectionInterval(col,col);
selection.getRowSelection().setSelectionInterval(0,table.getRowCount()-1);
} else if (SwingUtilities.isRightMouseButton(e)) {
if (table instanceof CommonSpreadSheet && ((CommonSpreadSheet)table).getSpreadSheetCategory() != null){
CommonSpreadSheet sp=(CommonSpreadSheet)table;
if (sp.isHasColumnHeaderPopup()) {
SpreadSheetColumnMenu columnsPopup = new SpreadSheetColumnMenu(sp,col+1);