Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   how GUI app connect to JavaDB Database? (http://www.go4expert.com/forums/gui-app-connect-javadb-database-t27303/)

DavCel 7Dec2011 09:33

how GUI app connect to JavaDB Database?
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..

desamudhuru 20Dec2011 22:55

Re: how GUI app connect to JavaDB Database?
jus go through the JDBC concept u can connect the database for ur registration form

ewaldhorn 28Dec2011 14:16

Re: how GUI app connect to JavaDB Database?

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/tutori...ics/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.

All times are GMT +5.5. The time now is 07:32.