[Solved] Java ActionListener not responding


You are adding the action listeners to buttons you don’t add to the frame (the ones you do add are new instances, and don’t have the action listeners)

Try:

content.add(Ele); 
content.add(exitButton); 

in AddPet

1

solved Java ActionListener not responding