Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt

Interface ActiveEvent

java.lang.Object
|
+--java.awt.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:Author:

Method Summary

voiddispatch()

Dispatch the event, according to what the event needs done.

Method Details

dispatch

public void dispatch()

Dispatch the event, according to what the event needs done. Invoked automatically if this is placed on the EventDispatchQueue.