A generic table model class to convert a POJO to JTable