} else {
// So that there is at least some kind of representation.
Object obj = getTable().getValueAt(getTable().getSelectedRow(), getTable().getSelectedColumn());
if (obj instanceof PropertySupport) {
PropertySupport prop = (PropertySupport) o;
String name = prop.getDisplayName();
try {
Object value = prop.getValue();
text = value + ", " + name;
readColumns = 1;
} catch (IllegalAccessException ex) {
Exceptions.printStackTrace(ex);
} catch (InvocationTargetException ex) {
Exceptions.printStackTrace(ex);
}
}
else
{
text = getTable().getColumnName(getTable().getSelectedColumn()) + ", " + obj.toString();
readColumns = 1;
}
}
}
}
}
else if (o != null) {
//text = o.toString() + " " + getTable().getColumnName(getTable().getSelectedColumn()) + " selected.";
for (int i = 0; i < getTable().getColumnCount(); i++) {
readColumns++;
o = getTable().getValueAt(getTable().getSelectedRow(), i);
TableCellRenderer renderer = getTable().getCellRenderer(getTable().getSelectedRow(), i);
if(o instanceof PropertySupport) {
PropertySupport prop = (PropertySupport) o;
String name = prop.getDisplayName();
try {
Object value = prop.getValue();
text += ", " + value + ", " + name;
} catch (IllegalAccessException ex) {
Exceptions.printStackTrace(ex);
} catch (InvocationTargetException ex) {
Exceptions.printStackTrace(ex);