if (selectedRow == -1) {
JOptionPane.showMessageDialog(rootPane, "You must chose one member first!", "Error!", JOptionPane.ERROR_MESSAGE);
} else {
int id = (int) tblMember.getModel().getValueAt(selectedRow, 0);
(new updateBalance(null, rootPaneCheckingEnabled, id)).setVisible(true);
MemberBean mem = new MemberBean();
mem = DataMember.getMemberByID(id);
Double balance = mem.getBalance();
}
}//GEN-LAST:event_btn_UpdateBalanceActionPerformed