public Object getValueAt(int row, int column) {
   if (row < notes.size()) {
     Note note = notes.get(row);
     switch (column) {
       case 0:
         return note.getIcon();
       case 1:
         return note.getSourceName();
       case 2:
         return note.getDate();
       case 3:
         return note.getEvent();
       case 4:
         return note.getNote();
     }
   }
   return null;
 }
 private void updateControls() {
   Note note = tableModel.getNote(table.getSelectedRow());
   deleteNoteButton.setEnabled(note != null && note.isCustom());
 }