
of the column. When a column is removed, getFromIndex() specifies the index that it
used to occupy. When a column is moved, getFromIndex() retur ns the column’s old posi-
tion and getToIndex() retur ns the column’s new position.
public class TableColumnModelEvent extends java.util.EventObject {
// Public Constructors
public TableColumnModelEvent(javax.swing .table.TableColumnModel source, int from, int to);
// Public Instance Methods
public int getFromIndex();
public int getToIndex();
// Protected Instance Fields
protected int fromIndex;
protected int toIndex;
}
Hierar chy: Object→ java.util.EventObject(Serializable)→ TableColumnModelEvent
Passed To: JTable.{columnAdded(), columnMoved(), columnRemoved()},
JTable.AccessibleJTable.{columnAdded(), columnMoved(), columnRemoved()},
TableColumnModelListener.{columnAdded(), columnMoved(), columnRemoved()},
javax.swing .table.DefaultTableColumnModel.{fireColumnAdded(), fireColumnMoved(), fireColumnRemoved()},
javax.swing .table.JTableHeader.{columnAdded(), columnMoved(), columnRemoved()}
TableColumnModelListener Ja va 1.2
javax.swing .event event listener
This interface defines the methods that an object must implement to receive notifica-
tions of changes in a javax.swing .table.TableColumnModel. Note that unlike most event listen-
ers, the methods of this object are passed differ ent types of event objects.
public abstract interface TableColumnModelListener