Can I add a JTable as an item in a JComboBox?
You may find this example under J2SE 1.2 installation directory in
You should be able to achieve the same using
- TableModel implementation
- custom JComboBox subclass "TableCombo"
- custom ListCellRenderer implementation "ListEntryRenderer"
- custom ComboBoxModel implementation "TableToListModel"
The JTreeTable uses a JTree as a TableCellRenderer for a JTable.
You may have to use a JTable as a ListCellRenderer of the dropdown JList of the combobox.
This not the coded example. Howevere all the information and samples should be enough to implement what you want.