new GridBagConstraints(0, 0, 1, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
}
public JComponent getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
if (value instanceof ListWithSelection) {
final ListWithSelection tags = (ListWithSelection)value;
if (tags.getSelection() == null) {
tags.selectFirst();
}
myCombo.removeAllItems();
for (Object tag : tags) {
myCombo.addItem(tag);
}
myCombo.setSelectedItem(tags.getSelection());
}
else {
LOG.error("value " + LogUtil.objectAndClass(value) + ", at " + row + ":" + column + ", in " + table.getModel());
myCombo.removeAllItems();
myCombo.setSelectedIndex(-1);