En el actionperformed haga que un boton pueda eliminar un dato registrado tipo codigo de una base de datos
public void actionPerformed(ActionEvent e){ if(e.getSource()==b1){ try{ String n=t1.getText(); String q="delete from student where rollno="+n; Statement stm=con.createStatement(); stm.executeUpdate(q); JOptionPane.showMessageDialog(null,"Record Deleted"); } catch(Exception ee){ JOptionPane.showMessageDialog(null,"Record Not Deleted"); } }