• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

spinner question

 
Ranch Hand
Posts: 49
Netbeans IDE PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, all!

I have a question about the ListSpinnerModel and how i can use this to display year selections using
java.util.Date and Calendar classes and methods. I have done this using the SpinnerDateModel class
in the YearSpinnerComponent class i have previously used in one of my projects. Now i need to
provide the user with a default value of "N/A" at the startup of the application so that the date value
in the spinner component always start with the forementioned value. Can someone point me in the
right direction so that i can use date selection in a spinner list model or is there any other way to do this
what i am trying to accomplish? maybe i should use another component for this attempt perhaps
a JComboBox would be a better choice? any tip would be great!

 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Would Rob Camick's Combo Box Prompt be useful? Or do you need to allow reselecting "N.A." even after selecting a year?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic