« Return to Thread: How get the MySQL data in a Netbeans UI
Wade Chandler wrote:This list is solely for the design of the NetBeans UI...not 3rd party applications built using NB. Please use nbusers or other user lists for these type questions. See the list descriptions for which lists to use and for what.
Thanks,
Wade
==================
Wade Chandler, CCE
Software Engineer and Developer, Certified Forensic Computer Examiner, NetBeans Dream Team Member, and NetBeans Board Member
http://www.certified-computer-examiner.com
http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam
http://www.netbeans.org
----- Original Message ----
From: anko <anko@amulder.com>
To: nbui@netbeans.org
Sent: Monday, December 24, 2007 6:23:55 AM
Subject: [nbui] How get the MySQL data in a Netbeans UI
I'm very new to Java and Netbeans so I was happy that making an
connection
with my remote MySQL server was easy. Showing the data with
System.out.println also.
But showing the data in a field on my form gives problems.
I have followed this example:
http://www.linglom.com/2007/07/14/accessing-sql-server-on-netbeans-using-jdbc-part-ii-perform-sql-operations/
example
When I want to fill a textfield using this code:
jTextFieldMV.setText(rs.getString(1));
I receive this error message:
TestMySQLUI.java:125: non-static variable jTextFieldMV cannot be
referenced
from a static context
jTextFieldMV.setText(rs.getString(1));
How can i resolve this?
--
View this message in context:
http://www.nabble.com/How-get-the-MySQL-data-in-a-Netbeans-UI-tp14486637p14486637.html
Sent from the Netbeans - UI mailing list archive at Nabble.com.
« Return to Thread: How get the MySQL data in a Netbeans UI
| Free Forum Powered by Nabble | Forum Help |