!7 p-substance { unswing { // drop out of Swing thread assertNotOnAWTThread(); print("Sleeping for 5..."); sleepSeconds(5); } // ...and back we are assertAWT(); showFrame("Here's a frame!"); }