The moose likes Swing / AWT / SWT / JFace and the fly likes SpinEdit Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply 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
 
 
subject: SpinEdit
 
Threads others viewed
GridBagLayout
control / set margins
Exception in thread "main" java.lang.IllegalArgumentException: illegal component position
Order of components rendering by rendered JSF tag
Coding binding attibute for my custom Component
developer file tools