}
return errors;
}
private void fillMemberInfoToForm(int id) {
MemberBean mem = new MemberBean();
mem = DataMember.getMemberByID(id);
index = id;
comboMembership.removeAllItems();
List<MembershipTypeBean> listType = new ArrayList();
listType = DataMembership.getAllTypes();
for (MembershipTypeBean bean : listType) {
comboMembership.addItem(bean);
}
comboMembership.setSelectedItem(mem);
comboTitle.setSelectedIndex(mem.getTitle());
txtFirstName.setText(mem.getFirstName());
txtLastName.setText(mem.getLastName());
txtNickname.setText(mem.getNickname());
txtAddress.setText(mem.getAddress());
txtPhone.setText(mem.getPhone());
txtEmail.setText(mem.getEmail());
txtDateOfBirth.setDate(mem.getDateOfBirth());
txtCompany.setText(mem.getCompany());
comboStatus.setSelectedIndex(mem.getStatus());
txtDescription.setText(mem.getDescription());
Double balance = mem.getBalance();
txtBalance.setText(String.format("%1$,.1f", balance) + "$");
}