Re: How get the MySQL data in a Netbeans UI

anko <[email protected]> Wed, 26 Dec 2007 01:07:23 -0800 (PST)
Newsgroups gmane.comp.java.netbeans.user-interface
Message-ID <[email protected]>
Hello Wade,
Sorry for posting at the wrong list, but as far as I remember I did not
choose for a specific list when I posted my question.
Besides you gave me an answer on a previos question without comment.
I'll find out how to use another list.
Thanks anyway.

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 <[email protected]>
> To: [email protected]
> 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.
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-get-the-MySQL-data-in-a-Netbeans-UI-tp14486637p14500520.html
Sent from the Netbeans - UI mailing list archive at Nabble.com.