I have a simple class which I am using to test out ActionListener functionality. It opens a frame and panel with an OK button. An action listener is added to the OK button and references a method to dispose of the parent frame.
This should be really straight forward; however, when the OK button is clicked nothing happens. It's like the code within the action listener is never being executed. I'm probably making a very simple mistake but I can't find it. Can someone take a look and see if you can find what I am doing wrong? Thanks a bunch. Here is my code: