JDBC « JTextArea « Java Swing Q&A





1. Problem with JDBC setResult on JTextarea    coderanch.com

Hi guys, I am trying to display a simple sql query result on a JTextArea.When I use a simple print line command I can get all data in console but when I replace the print command with append() I get these address instead of my data com.mysql.jdbc.JDBC4ResultSet@1a16869 com.mysql.jdbc.JDBC4ResultSet@1a16869 com.mysql.jdbc.JDBC4ResultSet@1a16869 com.mysql.jdbc.JDBC4ResultSet@1a16869 com.mysql.jdbc.JDBC4ResultSet@1a16869 public class DBTest { public static void main(String[] args) { ...

2. Problem with JDBC setResult on JTextarea    coderanch.com

Hi guys, I am trying to display a simple sql query result on a JTextArea.When I use a simple print line command I can get all data in console but when I replace the print command with append() I get these address instead of my data com.mysql.jdbc.JDBC4ResultSet@1a16869 com.mysql.jdbc.JDBC4ResultSet@1a16869 com.mysql.jdbc.JDBC4ResultSet@1a16869 com.mysql.jdbc.JDBC4ResultSet@1a16869 com.mysql.jdbc.JDBC4ResultSet@1a16869 public class DBTest { public static void main(String[] args) { ...