<blockquote class="quote"><div class="op">Quote:</div>private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { try { String sqlquery1 = "SELECT * FROM GUI_TEST.NAME"; smt = con.createStatement(); ResultSet rs1 = smt.executeQuery(sqlquery1); while (rs1.next()) { String dname = rs1.getString("NAME"); jTextArea1.setText(dname); //Doesnt work System.out.println("Name is "+dname); //Works fine } } catch (SQLException s) { System.out.println(s); } jTextField1.setText(""); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)