Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

spinner question

 
krillian konstatos
Ranch Hand
Posts: 49
Java Netbeans IDE PHP
  • Mark post as helpful
  • send pies
  • 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!

 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic