This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JSpinner arrow listener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JSpinner arrow listener" Watch "JSpinner arrow listener" New topic
Author

JSpinner arrow listener

Mathias Nilsson
Ranch Hand

Joined: Aug 21, 2004
Posts: 367
Hi!

I need to change the value only when I press one of the arrows in a JSpinner component.
How can I add a listener to the arrow buttons. I tried ChangeListener but it was not what I needed


SCJP1.4
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
not sure I understand the question, but this will give you access to the arrow buttons

Mathias Nilsson
Ranch Hand

Joined: Aug 21, 2004
Posts: 367
Thanks you very much. This was exactly what I was looking for

// Mathias
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSpinner arrow listener
 
Similar Threads
Trap up/down arrowbutton event in JSpinner
JWhat
Unable to use JSpinner properly.
JSpinner dateeditor issues
how to Change JSpinner&JComboBox Arrows Color?