return 3;
}
public Object getValueAt(int column, int row) {
if (row < getJbsObjects().size()) {
JbsCompany company = (JbsCompany) getJbsObjects().get(row);
switch (column) {
case 0:
String companyName = "";
if (company.getName1() != null) {
companyName = company.getName1();
}
return companyName;
case 1:
String street = "";
if (company.getStreet() != null) {
street = company.getStreet();
}
return street;
case 2:
String city = "";
if (company.getZip() != null) {
city = company.getZip();
}
if (company.getCity() != null) {
if (!city.equals("")) {
city += " ";
}
city += company.getCity();
}
return city;
default:
return "";
}