int admin = config.getAdminID();
MemberBean member = (MemberBean)unjoiners.get(listUnjoiner.getSelectedIndex());
String des = "Pay fee to join event: " + event.getDescription();
Double fee = (type == 0) ? event.getFee() : 0.0;
if (member.getBalance() >= fee || type !=0){
if (dataTransaction.insertTrans(admin, member.getMemberID(), des, 0.0-fee)){
int transID = dataTransaction.getMaxID( member.getMemberID());
dataAttendance.makeAttendance(eventID, member.getMemberID(), type, transID);
JOptionPane.showMessageDialog(this, "Successfully added");
updateListUnjoiner();
updateListJoiner();