-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
6u17
-
x86
-
windows_xp
Subject:
Add ability to add ActionListeners to JSpinners
From:
Yoseph Phillips <###@###.###>
Date:
Tue, 01 Dec 2009 17:11:14 +0200
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
Does this problem occur on J2SE 5.0.x or 6.0? Yes / No (pick one)
Yes
Operating System Configuration Information (be specific):
Client: Microsoft Windows XP [Version 5.1.2600]
Bug Description:
RFE: Add ability to add ActionListeners to JSpinners
We need to know once the user has finished changing the value of the JSpinner.
When the JSpinner and all sub components no longer have the focus, or the enter key is pressed on the JSpinner, then actionPerformed should be called on the ActionListeners.
The problem with using the ChangeListener for this is that it can be called 100s of times when the user holds down the up or down arrows, which is not good when committed values need to be sent to a database or to a server. We need to use the ChangeListener as well for updating other things on the screen every time the value is changed.
Add ability to add ActionListeners to JSpinners
From:
Yoseph Phillips <###@###.###>
Date:
Tue, 01 Dec 2009 17:11:14 +0200
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
Does this problem occur on J2SE 5.0.x or 6.0? Yes / No (pick one)
Yes
Operating System Configuration Information (be specific):
Client: Microsoft Windows XP [Version 5.1.2600]
Bug Description:
RFE: Add ability to add ActionListeners to JSpinners
We need to know once the user has finished changing the value of the JSpinner.
When the JSpinner and all sub components no longer have the focus, or the enter key is pressed on the JSpinner, then actionPerformed should be called on the ActionListeners.
The problem with using the ChangeListener for this is that it can be called 100s of times when the user holds down the up or down arrows, which is not good when committed values need to be sent to a database or to a server. We need to use the ChangeListener as well for updating other things on the screen every time the value is changed.