este es el codigo de mi boton donde traigo los datos
Código:
try { Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance(); Connection cn=DriverManager.getConnection("jdbc:derby://localhost:1527/mn","root","123"); String query="select * from APP.USUARIOS"; Statement st=cn.createStatement(); ResultSet rs=st.executeQuery(query); while (rs.next()) { this.jTextField1.setText(rs.getObject(1).toString()); this.jTextField2.setText(rs.getObject(2).toString()); this.jTextField3.setText(rs.getObject(3).toString()); } } catch (Exception e) { JOptionPane.showMessageDialog(null,e.getMessage()); }