in your line
  myColumn.setCellEditor(new DefaultCellEditor(cBox));

you could change it to 
  myColumn.setCellEditor(new DefaultCellEditor(cBox)) 
     {
        public Component getCellEditorComponent
                (JTable table, Object value,
                 boolean isSelected, 
                 int row, int col)
        {
            // perform super.getCellEditorComponent..
            // change the returned combo box
            // return the combo box
        }
     }; 

--- suhas <[EMAIL PROTECTED]> wrote:
> Hi , 
>  
>    I have a column in JTable . That cloumn's
> different cells has to be rendered by different
> JComboBox .Currently I'm able to render the all the
> cells in the column with a JComboBox but the
> contents of that JcomboBox is same for all the cells
> in that column. Please let me know how to do
> rendering for different cells in that column with
> Different contents of JComboBox 
> 
> Currently this is what i'm doing . But my
> requirement forces me to change vectorOfData in
> JComboBox for every cell in myColumn of the table
> 
> TableColumnModel colModel = table.getColumnModel();
> TableColumn myColumn = colModel.getColumn(1);
> JComboBox cBox = new JComboBox(vectorOfData);
> myColumn.setCellEditor(new DefaultCellEditor(cBox));
> 
> 
> Please answer this urgent
> 
> Regards
> SUHAS
> 


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to