public class SwingBlockUtil extends Object
I consider this a mild hack. This class may be incompatible with future versions of Java if the AWT event mechanism is altered. It may also not work happily with non-Sun based implementations of Java.
Constructor and Description |
---|
SwingBlockUtil() |
Modifier and Type | Method and Description |
---|---|
void |
block()
Utility that blocks the Swing EventDispatchThread, and then emulates the
inner loop of the dispatcher thread itself.
|
void |
unblock()
Unblocks any call to the 'block' method.
|
public void block()
public void unblock()
Copyright © 2015. All rights reserved.