/** * Should be called from EDT only * * @param frame */ public static ITitledMonitor start(JFrame frame) { States.assertIsEDT(); ProgressComponent content = new ProgressComponent(); ProgressGlassPane.install(frame, content.getGui()); return content.getController(); }
/** * May be called from any thread * * @param frame */ public static void stop(JFrame frame) { ProgressGlassPane.restore(frame); }
/** * May be called from any thread * * @param dialog */ public static void stop(JDialog dialog) { ProgressGlassPane.restore(dialog); }