java.awt

Interface ActiveEvent

public interface ActiveEvent

An interface for events which can dispatch themselves in another thread. This has two uses: first, if your code is in a critical section, calling a synchronized method might deadlock. But by using an ActiveEvent to call the second section, it will not obtain the lock until you have left the critical section, avoiding deadlock. The second use is for calling untrusted code. For example, system code should use an ActiveEvent to invoke user code securely.

Since: 1.2

UNKNOWN: updated to 1.4

Method Summary
voiddispatch()
Dispatch the event, according to what the event needs done.

Method Detail

dispatch

public void dispatch()
Dispatch the event, according to what the event needs done. Invoked automatically if this is placed on the EventDispatchQueue.