static void swingNowOrLater(Runnable r) { if (isAWTThread()) r.run(); else swingLater(r); }