@Override
      public void actionPerformed(ActionEvent e) {
            if(e.getSource().equals(m.getBtnAddEdit())){
                 
                 if (m.getTfAssetName().getText().trim().length() != 0 && m.getTfType().getText().trim().length() != 0 && m.getTfOwner().getText().trim().length() != 0 && m.getTfStorage().getText().trim().length() != 0 && m.getTfFinancial().getText().trim().length() != 0){
                               
                     DBHandler b = new DBHandler();    
                     b.addAsset(m);
                     b.addActivityLog("Add Asset", m.getUserType(), m.getUsername());
                     m.dispose();
                 }
                 else
                     JOptionPane.showMessageDialog(null, "Please complete all required fields", "Error", JOptionPane.ERROR_MESSAGE);
             }
             
             }