How can I edit the JTables contents when I click on the row?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Shaji_Kalidasan
Posted On:   Friday, August 17, 2001 03:13 AM

Respected Sir,

I want to edit the row in a JTable when the user clicks with a mouse. How can I do it. Is there any event to do it?



My requirements is to pop up a window whenever the user click the rows in the JTable and in the pop up window provide buttons to modify and remove options? How it can happen? Please help.


Shaji

Re: How can I edit the JTables contents when I click on the row?

Posted By:   Naveed_Azhar  
Posted On:   Friday, August 17, 2001 04:23 AM

Hi there

Seems to be very simple. Use the functions setValueAt(),isCellEditable() and fireTableRowsUpdated() of AbstractTableModel's implementation object you will be using.


naveed@hotmail.com
About | Sitemap | Contact