public static void flashBackground(Component c, Color flashColor, int flashCount) { me.c = c; me.flashColor = flashColor; me.flashCount = flashCount; synchronized (me.semaphore) { me.semaphore.notifyAll(); } }