JXComboBox with different autocomplete values for each cell in a JXTable
Yesterday I had some difficulty getting a JXComboBox with autocomplete working correctly in a JXTable. I eventually got the system working nicely with the following code applied as part of a table column model:
DefaultTableColumnModelExt model = new DefaultTableColumnModelExt();
TableColumnExt col0 = new TableColumnExt(0, 40);
JXComboBox partComboBox = new JXComboBox(PartListData.getPart_nos());
.. other columns
In the above code, PartListData.getPart_nos() returns a fixed String and the same editor is applied to all cells in column 0 of the table.
My new challenge is to use a JXComboBox as an autocomplete editor for String data that is different in every cell in the same column. The question is how?