public interface ValueListenerEDT extends ValueListener
Note: Your implementation will be called on the Event Dispatching Thread. To avoid creating
delays in response to other user input, your implementation should return as quickly as
possible. Alternatively, you can implement the ValueListener
interface instead. If
you do, you must limit your code to what is safe to run on a thread other than the Event
Dispatching Thread, or use java.awt.EventQueue.invokeAndWait
when you need
code to run on the EDT (for instance, when you make a change to a Swing control).
Also note; this interface has no methods of its own. Rather, it extends the ValueListener
interface. To implement ValueListenerEDT
, implement
ValueListener
's ValueListener.value(int)
method, but declare your class as
implementing ValueListenerEDT
value