I want to add a JPanel to a column header of the JTable. Searched a lot, but could not find any answer. Please help me on this.
Thank you.
I want to add a JPanel to a column header of the JTable. Searched a lot, but could not find any answer. Please help me on this.
Thank you.
Not directly.
If you want to change the appearance of a cell, then you need to write a custom cell renderer:
http://www.coderanch.com/t/339979/GUI/java/Adding-JComboBox-JTable-header. Here's a link similar to your requirement. JComboBox in Jtable header insted of jpanel. This should help you. Agree with paulsm4.