Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Insert VALUE from JTEXTFIELD to DATABASE

 
Rui Kim
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys I'm using usbwerver mySQL for my database and netbeans 7.0 with Glassfish server 3.1 as my server..my project is a Java Desktop Applicaion with Basic Database.
just wanna know how do I insert values which are inputted by a user from my JTEXTFIELD and insert it to my DATABASE? and where exactly should I put it? I really need your help here guys T.T thanks in advance





 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should put your insert statement(s) in the button click event of your Save button (if you have one).

I am wondering, why a Desktop application uses GlassFish server for!
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!