This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Add data into database from jcombobox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Add data into database from jcombobox" Watch "Add data into database from jcombobox" New topic
Author

Add data into database from jcombobox

Ah Ling
Greenhorn

Joined: Dec 28, 2009
Posts: 12
Hi all.
I have a problem now.
That is I want to add the data to the database from the comboboxes.
And I have errors adding it.



How should i go about fixing it?

Thanks in advanced!
Ah Ling
Greenhorn

Joined: Dec 28, 2009
Posts: 12
Hey.
Now, I know where is the problem already.
As I am getting the data from the combobox (It is from other class), thus I can only take in 'null' into the database!
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
this type of error is generally found on line 42 of the code.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20078
    
  30

I think Michael means TellTheDetails. The most important question is, what is the exact query you are trying to execute?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Add data into database from jcombobox
 
It's not a secret anymore!