Hi ,
My client wants me to convert one column of the JIDE Table into a combo box. So, instead of an editable cell, he will get a combo box for one column only. Is that possible ?
Kindly help.
Regards,
Kalyani
Moderator: JIDE Support
ObjectConverterManager.initDefaultConverter();
CellRendererManager.initDefaultRenderer();
CellEditorManager.initDefaultEditor();
CellEditorManager.registerEditor(String.class, new CellEditorFactory() {
public CellEditor create()
{
AbstractComboBoxCellEditor editor = new AbstractComboBoxCellEditor() {
@Override
public AbstractComboBox createAbstractComboBox()
{
DefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(
new String[]{"One", "Two"});
return new ListComboBox(comboBoxModel);
}
};
return editor;
}
}, PN_CONTEXT);
return column == 1 ? ListStyleOptionsDialog.PN_CONTEXT : super.getEditorContextAt(row, column);
_sortableTable.getSelectionModel().setSelectionInterval(index, index);
_sortableTable.changeSelection(index,2,false,true);
_sortableTable.requestFocusInWindow();
Return to JIDE Common Layer Open Source Project Discussion (Community Driven)
Users browsing this forum: Bing [Bot] and 6 guests