title: java.sql.SQLException: Operation not allowed after ResultSet closed prob
body: <p>i have error when i try run this code</p>
  
  <p>i am try many time
  i try to make delay 3 second before read next value from daabase 
  i have error 
  java.sql.SQLException: Operation not allowed after ResultSet closed</p>
  
  <p>what you think about this error because i don't now about this error</p>
  
  <p>and this is my code , please help me </p>
  
  <pre><code>try {
          Connection conn = null;
          Statement st = null;
          ResultSet rs = null;
          String dbUrl = "jdbc:mysql://*******/jointdb";
          String dbUsr = "****";
          String dbPass = "*****";
          String sql = "select * from eridb";
          Class.forName("com.mysql.jdbc.Driver");
          conn = DriverManager.getConnection(dbUrl, dbUsr, dbPass);
          st = conn.createStatement();
          rs = st.executeQuery(sql);
          while ( rs.next() ) {
          SwingUtilities.invokeLater(new Runnable() {
          @Override
          public void run() {
              try {
                  String value = rs.getString("id");
                  jTextArea1.setText(value); 
                  Thread.sleep(3000);
              } catch (InterruptedException e) {
                  e.printStackTrace();
              } catch (SQLException ex) {
                  Logger.getLogger(KK.class.getName()).log(Level.SEVERE, null, ex);
              }
          }
      });
          }
      } catch (Exception e) { }   
      finally{
          try{
             if (rs != null)
               rs.close();
             if (st != null) 
               st.close();
             if (conn != null) 
               conn.close();
          }catch(SQLException e){}
       }
  </code></pre>