kohinoor2007
Programmer
Hi Guys,
I have rendered a Jtable with ComboBoxes as shown in figure.The first column is a header column.
sheetColumn.setCellEditor(new MyComboBoxEditor(values));
sheetColumn.setCellRenderer(new MyComboBoxRenderer(values))
When the user selects the first column,want to know that,to perform some actions.
Which Listener should I use & to whom Should I add it.
Also when the user makes the selection from one of the comboboxes,want to know the selected item & which row & column is selected.
Here also Which Listener should I use & to whom Should I add it.(For Eg:- to Table,TableModel,or to celleditor).
Please show it with a sample code
Thanks
I have rendered a Jtable with ComboBoxes as shown in figure.The first column is a header column.
sheetColumn.setCellEditor(new MyComboBoxEditor(values));
sheetColumn.setCellRenderer(new MyComboBoxRenderer(values))
When the user selects the first column,want to know that,to perform some actions.
Which Listener should I use & to whom Should I add it.
Also when the user makes the selection from one of the comboboxes,want to know the selected item & which row & column is selected.
Here also Which Listener should I use & to whom Should I add it.(For Eg:- to Table,TableModel,or to celleditor).
Please show it with a sample code
Thanks