permaculture playing cards*
The moose likes Swing / AWT / SWT and the fly likes SpinEdit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "SpinEdit" Watch "SpinEdit" New topic
Author

SpinEdit

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: May 17, 2001
Posts: 2823
It will be in the 1.4 release which is still in beta.
Shaheer Ahmed
Greenhorn

Joined: Nov 14, 2001
Posts: 1
You can make a SpinEdit Component for yourself by using a JTextField and a JScrollBar together.
claude jones
Greenhorn

Joined: Dec 14, 2001
Posts: 24
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
 
jQuery in Action, 2nd edition
 
subject: SpinEdit
 
Similar Threads
GridBagLayout
Exception in thread "main" java.lang.IllegalArgumentException: illegal component position
Coding binding attibute for my custom Component
control / set margins
Order of components rendering by rendered JSF tag