}
}
private void add() {
final AllergyModel model = new AllergyModel();
model.setFactor(view.getFactorFld().getText().trim());
model.setSeverity((String) view.getReactionCombo().getSelectedItem());
String memo = view.getMemoFld().getText().trim();
if (!memo.equals("")) {
model.setMemo(memo);
}
String dateStr = view.getIdentifiedFld().getText().trim();
if (!dateStr.equals("")) {
model.setIdentifiedDate(dateStr);
}
//pns
clear();
addBtn.setEnabled(false);