Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Please help with a spinner  RSS feed

 
manuela marginean
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A SWT spinner is giving me headaches
Users can manually edit the selected value, unfortunately this leads to a stupid situation where the selected value is larger than the maximum value of the spinner. In fact the value displayed does not correspond to the real value that is selected (which does not exceed the maximum). I have tried to manually set the real value or do a refresh but nothing seems to work.
If you have any clue how to solve this problem please let me know.
Thanks in advance!
 
Ramses Butarbutar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
manuela marginean wrote:A SWT spinner is giving me headaches
Users can manually edit the selected value, unfortunately this leads to a stupid situation where the selected value is larger than the maximum value of the spinner. In fact the value displayed does not correspond to the real value that is selected (which does not exceed the maximum). I have tried to manually set the real value or do a refresh but nothing seems to work.
If you have any clue how to solve this problem please let me know.
Thanks in advance!


You can define acceptable value (hardcore) or set range value of the spinner..
I hope this will help
 
Rob Spoor
Sheriff
Posts: 21087
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ramses, I think you missed the "SWT" part
 
Ramses Butarbutar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:Ramses, I think you missed the "SWT" part


Hehehe... yups.. your right Rob... thanks for your correction.. I miss "SWT" part..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!