| java.lang.Object snow.utils.gui.SwingSafeRunnable
SwingSafeRunnable | public class SwingSafeRunnable implements Runnable(Code) | | a runnable wrapper class which guaranties that
the runnable given runs in the dispatch thread.
BE CAREFUL, the word "Safe" is excessive. It just assure
that you don't become exceptions if you try to naively
perform a SwingUtilities.invokeAndWait from the event dispatch thread.
It's always better if you exactely know in which thread you're running.
you can avoid creating runnable and call directly the code, if you know being in the EDT.
use this only for strenghtening code that can be called in all contexts.
|
SwingSafeRunnable | public SwingSafeRunnable(Runnable theRunnable, boolean doWait)(Code) | | Parameters: theRunnable - is the runnable to execute Parameters: doWait - true if we must |
|
|