Back to index

wims  3.65+svn20090927
Public Member Functions
SharpTools.SharpTools.HeaderMouseAdapter Class Reference

List of all members.

Public Member Functions

void mouseClicked (MouseEvent e)

Detailed Description

Definition at line 1198 of file SharpTools.java.


Member Function Documentation

Definition at line 1200 of file SharpTools.java.

                                              {
           TableColumnModel colModel = 
              table.getColumnModel();
           int col = 
              colModel.getColumn(colModel.getColumnIndexAtX(e.getX())).getModelIndex();
           
           int rowCount = table.getRowCount();
           table.setRowSelectionInterval(baseRow, rowCount - 1);

           if (col < baseCol)
              table.setColumnSelectionInterval(baseCol, table.getColumnCount()-1);
           else
              table.setColumnSelectionInterval(col, col);
       }

The documentation for this class was generated from the following file: