aspose file tools *
The moose likes Swing / AWT / SWT and the fly likes Editing table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Editing table" Watch "Editing table" New topic
Author

Editing table

Antony Amicone
Ranch Hand

Joined: Mar 11, 2006
Posts: 125
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

Joined: May 26, 2003
Posts: 31119
    
166

This seems like move of a GUI question. Moving to our Swing forum.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19799
    
  20

I think the easiest way is to override setValueAt:


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Editing table