aspose file tools*
The moose likes Java in General and the fly likes Jspinner Date increment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Jspinner Date increment" Watch "Jspinner Date increment" New topic
Author

Jspinner Date increment

aminur rashid
Ranch Hand

Joined: Sep 21, 2001
Posts: 79
Here is the code for JSpinner.

Now if i try to increase the value by Up arrow (?) of the spinner, i expect the value to be increased by YEAR as i have set the step value as Calender.Year
But its increased by the Month.
It comes with the default date value 8/20/03 12:31 PM [current date]
Now if i press upper arrow the value 8 is increased instead of 03 [year]


Regards<br />Aminur
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Works for me. When I click the up arrow I get "8/20/04 8:47 AM".


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
Consider Paul's rocket mass heater.
 
subject: Jspinner Date increment