• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SpinEdit

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With Delphi I could use a component called SpinEdit. It is a kind of textfield component for selections of numerical value combined with two buttons (arrow up and down). You can write the value directly or use the arrows to increase or decrease the value.
Are there similar classes in Java (especially in Swing)?
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It will be in the 1.4 release which is still in beta.
 
Shaheer Ahmed
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can make a SpinEdit Component for yourself by using a JTextField and a JScrollBar together.
 
claude jones
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Shaheer Ahmed:
You can make a SpinEdit Component for yourself by using a JTextField and a JScrollBar together.

I have tried to do this and am running into problems. The would like the JScrollBar behavior to adjust by +/- 0.1 (Range 0-1).
Any ideas?
cj
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic