• Post Reply Bookmark Topic Watch Topic
  • New Topic

ChangeListener Problem  RSS feed

 
D R Wilkinson
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Can someone spot what is wrong with my code. Only the timePeriod JSpinner produces a System.out.println() - the others don't and I can't see why.

Thanks in advance.



[ July 06, 2005: Message edited by: D R Wilkinson ]
[ July 06, 2005: Message edited by: D R Wilkinson ]
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you look at your constructor (for the SpinnerModels)

periodModel = new SpinnerListModel( periods );//this line changeListener works OK
SpinnerModel temperaturesModel = new SpinnerListModel( temperatureChoices );
SpinnerModel rainfallModel = new SpinnerListModel( rainfallChoices );

notice the difference?
 
D R Wilkinson
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do now :-)

Thanks for pointing that out Michael - sometimes just need a fresh pair of eyes.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!