NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Need Help Linking Text Field to Database

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
KieferThomas



Joined: 09 Aug 2012
Posts: 15

PostPosted: Thu Aug 09, 2012 4:43 pm    Post subject: Need Help Linking Text Field to Database Reply with quote

Hello Everyone,

I am new to Netbeans and Java in general. I have created a project using jForms and everything is working from what I have taught myself with the tutorials. The one thing that I have not found in the tutorials is how to link a TextField to the Java DB. I have found how to make the connections to a table but not directly to a TextField for entering and displaying my data.

Can anyone give me some help in pointing me in the right direction for accomplishing this?

Thanks In Advance,

Kiefer
Back to top
Javier Ortiz
Posted via mailing list.





PostPosted: Fri Aug 10, 2012 1:00 pm    Post subject: Need Help Linking Text Field to Database Reply with quote

First read from the database: http://webhelp.ucs.ed.ac.uk/services/mysql/example2-java.php/

Update the text field

JTextField tf = new JTextField();
Tf.SetText(<value from database>);


Senior Software Quality Engineer
ArthroCare Corporation
7000 William Cannon Drive
Austin, TX 78735
Phone: 512-358-5996
email: address-removed

-----Original Message-----
From: KieferThomas [mailto:address-removed]
Sent: Thursday, August 09, 2012 11:44 AM
To: address-removed
Subject: [nbusers] Need Help Linking Text Field to Database

Hello Everyone,

I am new to Netbeans and Java in general. I have created a project using jForms and everything is working from what I have taught myself with the tutorials. The one thing that I have not found in the tutorials is how to link a TextField to the Java DB. I have found how to make the connections to a table but not directly to a TextField for entering and displaying my data.

Can anyone give me some help in pointing me in the right direction for accomplishing this?

Thanks In Advance,

Kiefer[/b]




**********

The information contained in this e-mail message, together with any
attachments thereto, is intended only for the personal and confidential
use of the addressee named above. The message and the attachments
are or may be privileged or protected communication. If you are not the
intended recipient of this message, or authorized to receive it for the
intended recipient, you have received this message in error, and you
are not to review, use, disseminate, distribute or copy this message,
any attachments thereto, or their contents. If you have received this
message in error, please immediately notify us by return e-mail
message, and delete the original message.

Pursuant to Circular 230 issued by the United States Treasury
Department and relating to practice before the Internal Revenue
Services, any comment or opinion in this communication relating to a
federal tax issue is not intended to be used, and cannot be used, by a
taxpayer for the purpose of avoiding tax-related penalties that may be
imposed on the taxpayer.
Back to top
KieferThomas



Joined: 09 Aug 2012
Posts: 15

PostPosted: Tue Aug 14, 2012 3:29 pm    Post subject: Re: Need Help Linking Text Field to Database Reply with quote

Javier Ortiz wrote:
First read from the database: http://webhelp.ucs.ed.ac.uk/services/mysql/example2-java.php/

Update the text field

JTextField tf = new JTextField();
Tf.SetText(<value from database>);


Javier,

Thanks for the input this helped me out immensely... Very Happy
Kiefer
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo