• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Editing table

 
Antony Amicone
Ranch Hand
Posts: 125
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to make my jtable editable, for every edit on a cell, i want to get a joptionpane to confirm the editing.
after that i retrieve edited data with .getValueAt and i send a query UPDATE to my db and finally a firetablechanged

is it correct? if it is, how to set my jtable editable?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33713
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This seems like move of a GUI question. Moving to our Swing forum.
 
Rob Spoor
Sheriff
Pie
Posts: 20396
47
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the easiest way is to override setValueAt:
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic