• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

JSpinner with blank value instead of zero  RSS feed

 
Ranch Hand
Posts: 41
Java Netbeans IDE PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Best forum!

I am working with a JSpinner that has a SpinnerNumberModel attached to it. I wan't to show a blank value instead of zero. I have tried this with a
listener class called IntegerChangeListener but it is not working:



Also i would like to show a blank value in the JSpinner at startup of the application, any ideas of how to accomplish this? I am really stuck here on this.
Any help is greatly much appreciated. Thanks in advance!

Kind regards,
Robert!


 
Robert Ingmarsson
Ranch Hand
Posts: 41
Java Netbeans IDE PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello world!

This thread is now solved. After many sleep deprived hours i finally wrote a class that suited my needs for the issue in question.
I thought i outta put my solution here to share.

Best wishes,
Robert!



 
Talk sense to a fool and he calls you foolish. -Euripides A foolish tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!