0
ActionListener Java Helppppp
Can someone explain ActionListeners in Java to me? Why do we need them? What do they do?
1 Resposta
+ 1
The classes ActionListener and ActionEvent belongs to the package java.awt.event.
For example you have a Window with a button.
Event: Click Button
With an ActionListener you capture the event and define what should happen after clicking this button.
https://docs.oracle.com/javase/tutorial/uiswing/events/actionlistener.html
https://www.javatpoint.com/java-actionlistener