0

ActionListener Java Helppppp

Can someone explain ActionListeners in Java to me? Why do we need them? What do they do?

14th Feb 2019, 9:50 PM
Pauline
Pauline - avatar
1 Antwort
+ 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
14th Feb 2019, 11:24 PM
Denise Roßberg
Denise Roßberg - avatar