All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.objogate.wl.swing.internal.ProbeRunner Maven / Gradle / Ivy

The newest version!
package com.objogate.wl.swing.internal;

import java.awt.EventQueue;
import com.objogate.wl.Probe;

public class ProbeRunner implements Runnable {
    private final Probe probe;

    public ProbeRunner(Probe probe) {
        this.probe = probe;
    }

    public void run() {
        if (!EventQueue.isDispatchThread()) {
            throw new IllegalStateException("Probe must be run on event dispatch thread");
        }
        probe.probe();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy