Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which Listener to choose 1

Status
Not open for further replies.

kohinoor2007

Programmer
Mar 21, 2007
69
0
0
DE
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top