Different JComboBox as the cell editor for each cell in a column
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Benny_keinan
Posted On:   Sunday, August 25, 2002 02:07 AM

Hi


I have a table that one of its column uses JComboBox as the default editor. I would like to have different values in the combo depending on the row I am.


Is there a nice way to do that?


Thanks

Benny

Re: Different JComboBox as the cell editor for each cell in a column

Posted By:   Ajit_Srivastava  
Posted On:   Sunday, August 25, 2002 06:43 PM

You can subClass JTable and overload


public TableCellEditor getCellEditor(int row,
int column)


In this method you can do the special processing for the Editor before returning it.


Ajit

About | Sitemap | Contact