How do I add text typed in a Java GUI to my database?
Using NetBeans, I've created a GUI, which has a 5 text boxes and an add/sumbit button. I've also created a database, which is on my Runtime Panel in Netbeans, and has a table with 5 columns. Once my GUI is running, I want the Add button to insert the information from each of the text boxes to the 5 columns in a row of the database. I haven't added any Event-> Action to my Add button yet.
I tried learning how to do this through the netbeans GUI JDBC tutorial, but it only showed a particular example, and didn't explain how this could be done in a differing situation. Can someone please tell me the code I'd need to access the database from the source code of my GUI?
thanks

