How do I properly use a ActionListener in JAVA to have a trafficlight be able to turn each light on and off?
I have a homework assignment that I need to make a traffic light that is turned on using buttons. I have everything done except linking the buttons to the lights. Any help would be great. Thanks.