Formatting tweaks I had laying around.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2299 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -27,21 +27,16 @@ import java.awt.EventQueue;
|
|||||||
*/
|
*/
|
||||||
public interface RunQueue
|
public interface RunQueue
|
||||||
{
|
{
|
||||||
/**
|
/** A useful RunQueue that uses the AWT dispatch thread. */
|
||||||
* A useful RunQueue that uses the AWT dispatch thread.
|
public static final RunQueue AWT = new RunQueue() {
|
||||||
*/
|
public void postRunnable (Runnable r) {
|
||||||
public static final RunQueue AWT = new RunQueue()
|
EventQueue.invokeLater(r);
|
||||||
{
|
}
|
||||||
public void postRunnable (Runnable r)
|
|
||||||
{
|
|
||||||
EventQueue.invokeLater(r);
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isDispatchThread ()
|
public boolean isDispatchThread () {
|
||||||
{
|
return EventQueue.isDispatchThread();
|
||||||
return EventQueue.isDispatchThread();
|
}
|
||||||
}
|
};
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Post the specified Runnable to be run on the RunQueue.
|
* Post the specified Runnable to be run on the RunQueue.
|
||||||
|
|||||||
Reference in New Issue
Block a user