![JAR search and dependency download from the Maven repository](/logo.png)
com.objogate.wl.swing.AWTEventQueueProber Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of windowlicker-swing Show documentation
Show all versions of windowlicker-swing Show documentation
This is the Windowlicker Swing library.
The newest version!
package com.objogate.wl.swing;
import java.awt.EventQueue;
import java.lang.reflect.InvocationTargetException;
import com.objogate.wl.PollingProber;
import com.objogate.wl.Probe;
import com.objogate.wl.swing.internal.ProbeRunner;
public class AWTEventQueueProber extends PollingProber {
public AWTEventQueueProber() {
super();
}
public AWTEventQueueProber(long timeoutMillis, long pollDelayMillis) {
super(timeoutMillis, pollDelayMillis);
}
@Override
protected void runProbe(Probe probe) {
try {
EventQueue.invokeAndWait(new ProbeRunner(probe));
}
catch (InterruptedException e) {
throw new IllegalStateException("unexpected interrupt", e);
}
catch (InvocationTargetException e) {
throw new IllegalStateException("probe failed", e.getCause());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy