OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 149 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 149 Rev 174
Line 163... Line 163...
163
 
163
 
164
        PropertyChangeListener dateListener = new PropertyChangeListener() {
164
        PropertyChangeListener dateListener = new PropertyChangeListener() {
165
 
165
 
166
            @Override
166
            @Override
167
            public void propertyChange(PropertyChangeEvent evt) {
167
            public void propertyChange(PropertyChangeEvent evt) {
168
                buttonValid.setEnabled(dateDeb.getValue() != null && dateFin.getValue() != null && dateDeb.getValue().before(dateFin.getValue()));
168
                buttonValid.setEnabled(dateDeb.getValue() != null && dateFin.getValue() != null && dateDeb.getValue().compareTo(dateFin.getValue()) <= 0);
169
                model.setDateLimit(dateDeb.getValue());
169
                model.setDateLimit(dateDeb.getValue());
170
            }
170
            }
171
        };
171
        };
172
        dateDeb.addValueListener(dateListener);
172
        dateDeb.addValueListener(dateListener);
173
        dateFin.addValueListener(dateListener);
173
        dateFin.addValueListener(dateListener);