File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jspinner Date increment

 
aminur rashid
Ranch Hand
Posts: 79
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Works for me. When I click the up arrow I get "8/20/04 8:47 AM".
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic