how GUI app connect to JavaDB Database?

Discussion in 'Java' started by DavCel, Dec 7, 2011.

  1. DavCel

    DavCel New Member

    Joined:
    Nov 23, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Part time C# programmer
    Location:
    Paco, Manila
    I want to create a REGISTRATION FORM using the GUI application of NETBEANS and I created a javaDB database in NETBEANS but I do not know how to connect the database to my gui registration form.

    how to connect the buttons through the database.
    how to store the value from the textbox through the database.
    how to get the information from the database and display it to a text area.

    if you have links for that tutorial, it is much appreciated thanks for responding..
     
  2. desamudhuru

    desamudhuru New Member

    Joined:
    Sep 28, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    programmer
    Location:
    visakhapatnam
    jus go through the JDBC concept u can connect the database for ur registration form
     
  3. ewaldhorn

    ewaldhorn New Member

    Joined:
    Feb 16, 2010
    Messages:
    36
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Developer
    Location:
    Cape Town, South Africa
    Home Page:
    http://www.javak.co.za
    Hi.

    You don't link the buttons to the database, you link the buttons to events, which in turn activates some action in your application. First create a program where the GUI responds to clicks by showing popup Dialogs, then you know the GUI is ok.

    Next, create a text-based class that handles the database functions for you. Once that is debugged and working, you can add methods to allow the two to interact. That way you split functionality between different classes and objects, making your life a lot easier in the future.

    Please see http://docs.oracle.com/javase/tutorial/jdbc/basics/index.html to learn about JDBC. Once you understand databases, you can move forward to understanding GUI design. Those are the two concepts you need to do what you want to do.

    Best of luck.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice