*
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 Android Security Essentials Live Lessons this week in the Android 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: 19654
    
  18

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: 19654
    
  18

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Save function for JTable in connection with the database
 
Similar Threads
refreshing a JTable
JTable(!!!)
Color in JTable
JTable
JTable