/[classpath]/classpath/javax/swing/table/DefaultTableColumnModel.java
ViewVC logotype

Diff of /classpath/javax/swing/table/DefaultTableColumnModel.java

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

revision 1.6.2.5 by tromey, Thu Oct 6 00:32:39 2005 UTC revision 1.6.2.6 by tromey, Sat Nov 26 05:29:43 2005 UTC
# Line 68  public class DefaultTableColumnModel Line 68  public class DefaultTableColumnModel
68    /**    /**
69     * Columns that this model keeps track of.     * Columns that this model keeps track of.
70     */     */
71    protected Vector tableColumns;    protected Vector<TableColumn> tableColumns;
72    
73    /**    /**
74     * Selection Model that keeps track of columns selection     * Selection Model that keeps track of columns selection
# Line 156  public class DefaultTableColumnModel Line 156  public class DefaultTableColumnModel
156        throw new IllegalArgumentException("Index 'i' out of range.");        throw new IllegalArgumentException("Index 'i' out of range.");
157      if (j < 0 || j >= columnCount)      if (j < 0 || j >= columnCount)
158        throw new IllegalArgumentException("Index 'j' out of range.");        throw new IllegalArgumentException("Index 'j' out of range.");
159      Object column = tableColumns.remove(i);      TableColumn column = tableColumns.remove(i);
160      tableColumns.add(j, column);      tableColumns.add(j, column);
161      fireColumnAdded(new TableColumnModelEvent(this, i, j));      fireColumnAdded(new TableColumnModelEvent(this, i, j));
162    }    }
# Line 184  public class DefaultTableColumnModel Line 184  public class DefaultTableColumnModel
184     * getColumns     * getColumns
185     * @return Enumeration     * @return Enumeration
186     */     */
187    public Enumeration getColumns()    public Enumeration<TableColumn> getColumns()
188    {    {
189      return tableColumns.elements();      return tableColumns.elements();
190    }    }

Legend:
Removed from v.1.6.2.5  
changed lines
  Added in v.1.6.2.6

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