Default table cell renederer get Methods

If I use a JComboBox as a cell editor in a JTable, is there a way I can use the .getSelectedIndex(); function on that editor? Also, with a JCheckBox as the renderer, How would I use the .isSelected(); function? Thank you!

[228 byte] By [Jensenryaa] at [2007-11-27 11:21:33]
# 1

You don't query the editor to find out its value. You query the TableModel.

When you select an item from the combo box the item gets saved in the TableModel. So you just use table.getModel().getValueAt(...).

Same with the check box. A Boolean value will be stored in the TableModel.

camickra at 2007-7-29 14:49:27 > top of Java-index,Desktop,Core GUI APIs...
# 2

Thanks for the info. Appreciate it.

Jensenryaa at 2007-7-29 14:49:27 > top of Java-index,Desktop,Core GUI APIs...