I tried to group JTable header and for that I want to get the DefaultTableModel of current JTable. But when I tried to retrieve the table model like this:
DefaultTableModel dm=(DefaultTableModel) tblTet.getModel();
It shows the following exception:
org.jdesktop.swingbinding.JTableBinding$BindingTableModel cannot be cast to javax.swing.table.DefaultTableModel
Because I am using JTableBeansBinding.
Does anyone know how to solve this problem (for retrieving DefaultTableModel)?