List of usage examples for javax.swing JFrame isDisplayable
public boolean isDisplayable()
From source file:Main.java
/** * Schedule disposal of a frame (async). *//*from w ww. j av a 2 s .c o m*/ public static void dispose(final JFrame frame) { SwingUtilities.invokeLater(new Runnable() { public void run() { if (frame.isDisplayable()) frame.dispose(); } }); }