Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSpinner decimal input  RSS feed

 
David Garratt
Ranch Hand
Posts: 216
Eclipse IDE Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to configure a JSpinner so that it will allow me to format a field for input of a value with 3 decimal places. I have tried several ways some of which display 0.000 etc but when I exit the field the value to the right if the decimal point reset back to .000

Some posts imply that a spinner can only handle integers. If so what would the best alternative be ?

Thanks in advance

Dave
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
David Garratt
Ranch Hand
Posts: 216
Eclipse IDE Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow - thanks for the example - just what I needed.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!