My only problem now are the values, added by the ValueUp and ValueDown button. I want to increase by 15 Minutes on ValueUp button click, vice versa decrease by 15 Minutes on ValueDown. What kind of listener do I have to add? Without listener, the value is in-/decreased by one hour. thanks
hi, I would not use listeners for implementing data logic. do that inside the SpinnerModel. you will have to extend the SpinnerDateModel. overwrite the methods getNextValue() and getPreviousValue() to return the time in 15 minutes steps. Chantal
as these methods are called quite often it seems quite an overhead to create Calendar objects inside of them. a (faster) way (but not as "nice"): - add th 15 minutes as milliseconds to the date value:
or: reimplement the whole SpinnerDateModel based on GregorianCalendar, not Date. cheers Chantal