String name = visibleColumn[i];
Object value = invokeJTMethod(expModel, name);
public static Object invokeJTMethod(ExperimentModel amodel, String name) {
Object jtv = new Object();
try {
if (!"".equals(name)) {
Method m = null;
String first = name.substring(0, 1);
String subString = name.substring(1, name.length());
name = first.toUpperCase().concat(subString);
if (name.equalsIgnoreCase("startTime")
|| name.equalsIgnoreCase("finishTime")) {
m = amodel.getClass().getMethod(
"get".concat(name).concat("Text"), null);
} else {
m = amodel.getClass().getMethod(
"get".concat(name), null);
}
jtv = m.invoke(amodel, (Object[]) null);
}
} catch (Exception e) {
e.printStackTrace();
}
return jtv;
}