A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
problem on spinner
Joined: Jun 22, 2007
Jul 24, 2007 06:31:00
In our code,first the spinner should be empty.when we click on spinner up arrow or down arrow then only that should show current date.
I have written following code with that ,if i open the screen that is showing the current date with that format.
Date d= new Date();
sdf = new
(d,null, null, 0);
s1 = new
JSpinner.DateEditor de = new JSpinner.DateEditor(s1, sdf.toPattern());
with the above code i am not able to get empty spinner at first time
so i have written like that to get empty spinner
If i written that line i am getting empty spinner.Next if i click spinner arrows i should get current date .But i am not able to get.
Please if any one know about this.
please help me to how can i get use action for that.
I have taken changelistener also its not be help ful for me.
Thanks and Regards
It is sorta covered in the
JavaRanch Style Guide
subject: problem on spinner
Non compilation of Sun Java's program SpinnerDemo3
JSpinner dateeditor issues
Please help: how to use tab to move from hours section to minutes section in format 'hours:minutes'.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013