Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Save function for JTable in connection with the database

 
Drake Carter
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20511
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Drake Carter wrote:In urgent help.

That may be, but you should still EaseUp
 
Drake Carter
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20511
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic