public void windowClosing(WindowEvent ev) { try { cConn.close(); } catch (Exception e) { } fMain.dispose(); if (bMustExit) { System.exit(0); } }
public void windowClosing(WindowEvent evt) { JFrame frame = (JFrame) evt.getSource(); frame.setVisible(false); frame.dispose(); }
public void dispose() { super.dispose(); DatanGraphics.frames.setElementAt(null, index); }