Results 1 to 4 of 4
  1. #1
    Maggy is offline Member
    Join Date
    Jan 2012
    Posts
    2
    Rep Power
    0

    Default Insert information into a MySQL database - NetBeans

    Hi All

    I am new and need some help in getting my java desktop application up and running, sometimes i may use the wrong word/terminology and I apologies in advance anything which you may be vague please ask and i will try to expand.

    I want to create a form and when i click submit it transfers the information to a mysql database,

    I have a db connection file which i have tested and works in the form i have the following fields

    User Name
    User ID
    First Name
    Last Name
    Station
    Gender

    I am using netbeans with the drag drop feature and all of them are jLabels with corresponding jTextFields, i have created a table in the db called newuser and would like to place the information which is entered into the java form into the database

    any help would be much appreciated

    Thanks

  2. #2
    santa's Avatar
    santa is offline Senior Member
    Join Date
    Nov 2009
    Location
    Sweden
    Posts
    208
    Rep Power
    5

    Default Re: Insert information into a MySQL database - NetBeans

    So ... what's the problem?

  3. #3
    Maggy is offline Member
    Join Date
    Jan 2012
    Posts
    2
    Rep Power
    0

    Default Re: Insert information into a MySQL database - NetBeans

    What action what I need to complete this task among the labels was easy drag and drop. It I don't know how to send the user inputted data to the database

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,450
    Rep Power
    19

    Default Re: Insert information into a MySQL database - NetBeans

    Have a button for saving, and then read the relevant data from the text fields.
    Pass that to the database layer.

Similar Threads

  1. Not able to insert data into mysql table
    By sharanya in forum JavaServer Pages (JSP) and JSTL
    Replies: 5
    Last Post: 02-16-2011, 01:46 PM
  2. How to insert DATE into mysql using JSP?
    By sivakumar_sakam in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 12-27-2009, 07:52 PM
  3. Replies: 3
    Last Post: 02-28-2009, 09:17 AM
  4. Replies: 5
    Last Post: 10-20-2008, 06:31 AM
  5. database with mysql using the netbeans 6.0
    By kwesiaryee in forum New To Java
    Replies: 2
    Last Post: 05-02-2008, 04:27 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •