Java JFrame waitFor(JFrame popup)

Here you can find the source of waitFor(JFrame popup)

Description

wait For

License

Apache License

Declaration

public static void waitFor(JFrame popup) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.swing.JFrame;

public class Main {
    public static void waitFor(JFrame popup) {
        while (popup.isVisible()) {
            try {
                Thread.sleep(100);
            } catch (Exception ex) {
                ex.printStackTrace();/*w w w.  ja v  a2 s  .co m*/
            }
        }
    }

    public static void sleep(int ms) {
        try {
            Thread.sleep(ms);
        } catch (Exception ignored) {
            ignored.printStackTrace();
        }
    }
}

Related

  1. toFront(JFrame frame)
  2. toFrontHack(JFrame theParent, JFrame theFrame)
  3. toggleFrame(JFrame frame)
  4. toggleOsXFullScreen(JFrame frame)
  5. unpackArchive(URL url, File targetDir, JFrame frame, ProgressMonitor progressMonitor)
  6. wrapPanelInFrame(JFrame frame, JPanel panel, String caption, int width, int height)
  7. write(JFrame frame, String ext, String desc, String text)
  8. writeOrAbort(String path, JFrame frame)