Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: JDBC Conectivity

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post JDBC Conectivity

    Hai,

    I have created a form with two TextField, one for the Server Address and then one for the Database Name. I want to get these inputs from the user, verify it and then connect to the Database. Can anyone tell me how to do it in Java NetBeans.

    Thanks a lot in advance.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: JDBC Conectivity

    What have you tried? Where are you stuck? Break the problem down and start with one requirement at a time, and ask a specific question about each requirement should you get stuck

  3. #3
    Junior Member
    Join Date
    Oct 2011
    Posts
    10
    My Mood
    Cheerful
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: JDBC Conectivity

    1st textfield -> txt_server_address (variable name)
    2nd textfield -> txt_DB_name (variable name)

    if we think there is a button called Submit,
    simply ,you double click that button in the form and write

    String server_name=txt_server_address.getText();
    String database_name=txt_DB_name.getText();

    Thanks..

Similar Threads

  1. jTable and jdbc
    By _lithium_ in forum JDBC & Databases
    Replies: 6
    Last Post: March 5th, 2011, 01:22 PM
  2. jdbc
    By kundalikk in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 2nd, 2011, 04:38 AM
  3. JDBC
    By Abdul Rasheed in forum JDBC & Databases
    Replies: 1
    Last Post: August 13th, 2010, 07:01 AM
  4. Help with JDBC
    By michaelmel in forum JDBC & Databases
    Replies: 0
    Last Post: May 14th, 2010, 07:11 AM
  5. Problem With JDBC
    By il912 in forum JDBC & Databases
    Replies: 7
    Last Post: October 17th, 2009, 03:59 AM

Tags for this Thread