Mercurial Hosting > junotu
changeset 91:4979d5820624
TabCalendarBoard: Setting range to 7 days starting with current day
author | Fox |
---|---|
date | Sun, 19 Feb 2023 02:39:21 +0100 |
parents | 3f068cb07fdf |
children | 0359e47f38c9 |
files | src/junotu/TabCalendarBoard.java |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/junotu/TabCalendarBoard.java Sun Feb 19 02:22:53 2023 +0100 +++ b/src/junotu/TabCalendarBoard.java Sun Feb 19 02:39:21 2023 +0100 @@ -570,8 +570,12 @@ dateRangeEndEditor.getFormat().applyPattern("yyyy-MM-dd EEEE"); dateRangeBeginEditor.getModel().setValue(calendar.getTime()); + calendar.add( Calendar.DAY_OF_MONTH, 6 ); dateRangeEndEditor.getModel().setValue(calendar.getTime()); + dateRangeBeginEditor.getModel().setCalendarField( Calendar.DAY_OF_MONTH ); + dateRangeEndEditor.getModel().setCalendarField( Calendar.DAY_OF_MONTH ); + dateRangeBegin.addChangeListener(this); dateRangeEnd.addChangeListener(this);