SyntaxFix
Write A Post
Hire A Developer
Questions
Just do System.out.println(e.getActionCommand()); inside actionPerformed(ActionEvent e) function. This will tell you which command is just performed.
System.out.println(e.getActionCommand());
actionPerformed(ActionEvent e)
or
if(e.getActionCommand().equals("Add")){ System.out.println("Add button pressed"); }