Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes Unable to get data from the GUI to the database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Unable to get data from the GUI to the database" Watch "Unable to get data from the GUI to the database" New topic
Author

Unable to get data from the GUI to the database

John Pisci
Ranch Hand

Joined: Dec 19, 2008
Posts: 44
Hi Folks, hoping you can help me as I am very confused at the moment as I have read a number of different articles and tried quite a few diiferent methods, but have not got anywhere!

I'm building a simple GUI that sits on a MySQL database to track the guest list...i.e whether they've replied, dietary requirements, whether they are coming all day or to just the evening etc...
Anyway, I've built the majority of the GUI and the database, and got them connected. What I can't do however, is get records inserted into the table (and presumably update and delete records too as I haven't tried doing them yet!) . This is not because of a lack of SQL knowledge, I just don't know how to get the data from the GUI to the database. I've tried a number of different ways (as can be seen in the code)but I don't seems to be getting any nearer.

Below is my code and then the errors I've been getting.

Thanks in advance.



Now the errors:
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Those are just compilation errors. Your code syntax/logic is plain wrong. Please use 'Java in general (beginners)' for compilation errors.
John Pisci
Ranch Hand

Joined: Dec 19, 2008
Posts: 44
deleted
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

Please do not cross-post. Rather, ask a moderator to move the original post. I have moved this one for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
jQuery in Action, 2nd edition
 
subject: Unable to get data from the GUI to the database
 
Similar Threads
NullPointerException..
Accessing class in different file
Unable to get data from GUI to the database
ItemListener Events
Cannot find symbol...