that implement this interface have the possibility
to filter AWT events before they are dispatched.
It is possible to retrieve the current EventPump used by
test if implements this interface; if so, a custom EventFilter may be provided.
EventPump pump = Worker.getEventPump();
if (pump instanceof EventFilterable)
// Save the old filter
EventFilter old = ((EventFilterable)pump).getEventFilter();
// Set the custom filter
public boolean accept(AWTEvent event)
// Do something with the event...
System.out.println("Event:" + event);
public Object run()
// Restore the old filter
Absolute care must be used when filtering AWT events, as your Swing application may not work properly
if AWT events are not dispatched properly.