I implemented JDatePicker exactly according to the post below. It was working fine for the longest time, but recently when I tried to click on the button to change the date, it doesn't seem like the button is recognizing the action and the calendar window isn't displayed. I added an ActionListener to the date picker to test this, and the code is not being run. I have additional buttons that will change the date by one day earlier or later, and those will likewise update the calendar model in the label of the date picker as advertised.
The problem is only occurring in my main class; if I add it to another class, it works fine. I've tried different implementations of it, but with no luck. All my other buttons in the frame function normally, it just seems to be isolated to this one component.
What would cause it to not function?