Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
    Bookmark Topic Watch Topic
  • New Topic

how to delete a row

 
Lim Youjie
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Report post to moderator
sorrie i m a newbie in java. mayi know how to know a row from JTable and den send the modified data back to database?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Lim,
Welcome to JavaRanch!

This question has two parts: Swing and JDBC. For the Swing part, you need to write an event handler that knows when a row in the JTable has been modified or deleted. If you have more questions on that, create a new post in the Swing / AWT / SWT / JFace forum.

That handler can call a class to update the database. Sun has an excellent tutorial to get you started with JDBC.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Lim,
Please don't cross post the same question in multiple forums.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic