File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jspinner Date increment
 
Similar Threads
2 JSpinners with SpinnerModels
Non compilation of Sun Java's program SpinnerDemo3
formatting challenge using JSpinner
completely lost in terms of trying to understand Collections.synchronizedList
Help please, using a JSpinner but I can't get the user's input into a date object