private void setFieldTitles() {
   fieldtitles = new String[fieldnames.length];
   for (int i = 0; i < fieldnames.length; i++) {
     if (this.fieldtitleset.containsKey(fieldnames[i])) {
       Object curvalue = fieldtitleset.get(fieldnames[i]);
       if (curvalue != null) {
         fieldtitles[i] = (String) curvalue;
       } else {
         fieldtitles[i] = fieldnames[i];
       }
     } else {
       fieldtitles[i] = fieldnames[i];
     }
   }
 }
 private void refreshtitleset() {
   for (int i = 0; i < fieldnames.length; i++) {
     fieldtitleset.put(fieldnames[i], fieldtitles[i]);
   }
 }