aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Save function for JTable in connection with the database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Save function for JTable in connection with the database" Watch "Save function for JTable in connection with the database" New topic
Author

Save function for JTable in connection with the database

Drake Carter
Greenhorn

Joined: Dec 19, 2010
Posts: 3
Hi everyone,
I am creating a desktop application on a JFrame with JTable on it, and the JTable allows the user to input the data on the cells. There is also a save button whereby it will save all the table value into the database. I have no problem performing the CRUD, saving all the values from the JTable into the database.

But here comes the main problem, how do I combine the Create, Update and delete of the existing table rows and updating of newly inserted table rows altogether with values, and save it back to the database again? The database should re insert the data from the JTable to the database again.

Thanks. In urgent help.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19720
    
  20

Drake Carter wrote:In urgent help.

That may be, but you should still EaseUp


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Drake Carter
Greenhorn

Joined: Dec 19, 2010
Posts: 3
Rob Prime wrote:
Drake Carter wrote:In urgent help.

That may be, but you should still EaseUp


What is your clue about? Nothing related to the topic.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19720
    
  20

Sorry, that link is broken. We are working on it. The proper link is EaseUp, and it essentially says that you shouldn't use words like "urgent" or "ASAP" and why.
Drake Carter
Greenhorn

Joined: Dec 19, 2010
Posts: 3
Questions are welcome, if you don't understand my words, feel free to leave a post. I will reply as soon as possible since I am in abit of trouble in my problem.

Thanks.
 
Consider Paul's rocket mass heater.
 
subject: Save function for JTable in connection with the database