private ListSelectionModel myListSelectionModel;
public DateIntervalListEditor(final DateIntervalModel intervalsModel) {
super(new BorderLayout());
myIntervalsModel = intervalsModel;
myStart = new DefaultDateOption("generic.startDate") {
public void setValue(Date value) {
super.setValue(value);
commit();
if (intervalsModel.getMaxIntervalLength()==1) {
DateIntervalListEditor.this.myFinish.setValue(value);
}
DateIntervalListEditor.this.updateActions();
lock();
}
};
myFinish = new DefaultDateOption("generic.endDate") {
public void setValue(Date value) {
super.setValue(value);
commit();
DateIntervalListEditor.this.updateActions();
lock();