private boolean isAssociatedComponent(Component comp, boolean checkLocation) {
//Enumeration columns = table.getColumnModel().getColumns();
// TF:Changed this for type safety as could receive a type cast exception on it.
if (table.getCellEditor() instanceof ArrayFieldCellEditor) {
ArrayFieldCellEditor afe = (ArrayFieldCellEditor)table.getCellEditor();
TableCellEditor tce = afe.getEditor();
if (tce instanceof DefaultCellEditor && ((DefaultCellEditor)tce).getComponent() == comp) {
return true;
}
else if (tce instanceof TextFieldCellEditor && ((TextFieldCellEditor)tce).getMultiLineTextField() == comp) {
return true;