/[classpath]/classpath/javax/swing/JTable.java
ViewVC logotype

Diff of /classpath/javax/swing/JTable.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.35 by abalkiss, Wed Jul 20 20:25:08 2005 UTC revision 1.36 by abalkiss, Mon Jul 25 14:48:53 2005 UTC
# Line 2070  public class JTable extends JComponent Line 2070  public class JTable extends JComponent
2070        
2071    public void selectAll()    public void selectAll()
2072    {    {
2073        // rowLead and colLead store the current lead selection indices
2074        int rowLead = selectionModel.getLeadSelectionIndex();
2075        int colLead = getColumnModel().getSelectionModel().getLeadSelectionIndex();
2076        // the following calls to setSelectionInterval change the lead selection
2077        // indices
2078      setColumnSelectionInterval(0, getColumnCount() - 1);      setColumnSelectionInterval(0, getColumnCount() - 1);
2079      setRowSelectionInterval(0, getRowCount() - 1);      setRowSelectionInterval(0, getRowCount() - 1);
2080        // the following addSelectionInterval calls restore the lead selection
2081        // indices to their previous values
2082        addColumnSelectionInterval(colLead,colLead);
2083        addRowSelectionInterval(rowLead, rowLead);
2084    }    }
2085    
2086    public Object getValueAt(int row, int column)    public Object getValueAt(int row, int column)

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26