I have read through the majority of the JTable/JComboBox responses to other questions of this ilk, but haven\'t yet found a solution to my problem.
I have created a
Here is an example that uses a JComboBox in a JTable TableHeader.
For other types of components is easier, have a look here.
This actually works exactly as expected. I think the clue is TableCellRenderer
.
Renderer's are typically non-interactive components. They are usually just a "snap-shot" of the component painted on to a surface and there is typically no way for a user to interact with them.
This is the expected behavior.
In order to supply editable functionality to the table header, you're going to need to supply your implementation of a JTableHeader
Have a look at this example for some ideas