JCalendar problem (the month February)

前端 未结 1 916
萌比男神i
萌比男神i 2020-12-21 20:57

I have a graphical component JCalendar for choosing the date. A problem (or bug) persists when my local date is June 30; for example, I go through the months with the arrow

相关标签:
1条回答
  • 2020-12-21 21:46

    Assuming JCalendar and JSpinnerDateEditor, I see no discontinuities near June 30 or February 28 in JCalendarDemo. You might verify that you are observing the correct property change:

        JDateChooser spinner = new JDateChooser(new JSpinnerDateEditor());
        spinner.addPropertyChangeListener(new PropertyChangeListener() {
            @Override
            public void propertyChange(PropertyChangeEvent e) {
                System.out.println(e.getPropertyName()
                    + ": " + e.getNewValue());
            }
        });
        this.add(spinner);
    

    Addendum: I am unable to reproduce the effect you describe because it's a bug that's fixed here.

    Addendum: The bug is also fixed in JCalendar, version 1.4.

    0 讨论(0)
提交回复
热议问题