Hi, pls helo when i closed the windows, why the rs not closed as the OUPUT still show"still connected"
addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) {try { con.close(); stmt.close(); rs.close(); System.out.println(rs+" will be closing"); if(rs != null) System.out.println(rs+" still connected"); System.exit(0); } catch (SQLException ex) { Logger.getLogger(ResultSetFrame.class.getName()).log(Level.SEVERE, null, ex); } }