private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
try {
Account account = null;
Class obj = Class.forName("com.moneychanger.core." + type);
account = (Account) obj.newInstance();
boolean status = account.editLabel(accountID, jTextField1.getText());
if (status) {
JOptionPane.showMessageDialog(this, "Account edited successfully", "Edit Success", JOptionPane.INFORMATION_MESSAGE);
MainPage.setOtherTabAccountLabel(jTextField1.getText(),row);
} else {
JOptionPane.showMessageDialog(this, "Account could not be edited", "Failure", JOptionPane.ERROR_MESSAGE);