I'm using the toedter's jCalendar and triggering events when the day buttons are clicked using the following code:
JDayChooser jdc = jCalendar.getDayChooser(); jdc.addPropertyChangeListener("day", new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent e) { date = jCalendar.getDate(); new AgendaFrame(date, user).setVisible(true); } });
The thing is that when jCalendar initiates, the button which matches the current date is already pressed and so, I'm unable to press it to go to my agenda frame. Any ideas to solve this?