Managing Event of checkbox in JTable

Hi

I have a table in which i have added a check box and text box in table initially the text box i have set disable.now i have to enable the text box through the event of check box in each row.

eg:

COLUMN - 1COLUMN - 2 COLUMN - 3

ROW - 1CHECK BOX1SOME TEXT1TEXT BOX1

ROW - 2CHECK BOX2SOME TEXT2TEXT BOX2

ROW - 3CHECK BOX3SOME TEXT3TEXT BOX3

I Have to click the check box 1 and by clicking the check box i have to enable the

textbox 1.

[491 byte] By [tb_tushara] at [2007-11-27 6:49:55]
# 1
if u have extended the AbstractTableModel then there is a method u need to defined: public boolean isCellEditable(int rowIndex, int columnIndex)In this method u can return true/false according to the value of checkBox column.
jaimatadi@12a at 2007-7-12 18:23:45 > top of Java-index,Desktop,Core GUI APIs...
# 2
But I Cant Extends More Than One Class i already extends one
tb_tushara at 2007-7-12 18:23:45 > top of Java-index,Desktop,Core GUI APIs...
# 3
which one you have extended?
Aniruddha-Herea at 2007-7-12 18:23:45 > top of Java-index,Desktop,Core GUI APIs...
# 4
i have a form in which i am using lots of panel so i extends panel
tb_tushara at 2007-7-12 18:23:45 > top of Java-index,Desktop,Core GUI APIs...
# 5
you write an inner class which extends the AbstractTableModel, which you pass to your table, and there you override this method.and read [url= http://java.sun.com/docs/books/tutorial/uiswing/components/table.html]How to Use Tables[/url]regardsAniruddha
Aniruddha-Herea at 2007-7-12 18:23:45 > top of Java-index,Desktop,Core GUI APIs...