/**
* Try the value field first, if its null, try the text field.
*/
public String getValue(int row, int col) {
String result = "";
TableDataModel tdm = (TableDataModel) values[row][col];
if (tdm.getValue() != null) {
result = tdm.getValue().toString();
} else {
if (tdm.getText() != null) {
result = tdm.getText();
}
}
return result;
}