How get the MySQL data in a Netbeans UI

anko <[email protected]> Mon, 24 Dec 2007 03:23:55 -0800 (PST)
Newsgroups gmane.comp.java.netbeans.user-interface
Message-ID <[email protected]>
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.