As you can find the current window you are in, in Java, then delete it and bring it to the front.
Window[] allWindows = Window.getWindows();
Top-Level Containers JVM, . J/Frame, J/Dialog (JOptionPane), J/Window,
() if (allWindows[i] instanceof JFrame) {
WindowState WindowEvent
,
JDialog ( toFront, toBack)
Java , , ? , ?
Java Translucent Window, Icon JLabel ( JButton)
Swing Timer , Icon swithing bewtween two or more Icons ( )