void (JTable treeView) { TableColumnModel columnModel = treeView.getColumnModel(); int columnCount = columnModel.getColumnCount(); for (int i = 0; i < columnCount; i++) { columnModel.getColumn(i).addPropertyChangeListener(myPropertyChangeListener); } }