[Solved] Java ActionListener not responding

[ad_1]

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

[ad_2]

solved Java ActionListener not responding