hi all i have an object derived from abstractObjectTable, when executed the data appears but NO HEADER APPEARS !!
any tip?
Code:package com.isthari.management.table.invoicer; import javax.swing.JTable; import javax.swing.table.TableColumnModel; import org.springframework.richclient.table.support.AbstractObjectTable; import com.isthari.base.richclient.control.LabelControl; import com.isthari.management.dao.invoicer.CustomerDao; public class CustomerTable extends AbstractObjectTable implements LabelControl { private CustomerDao customerDao; public CustomerDao getCustomerDao() { return customerDao; } public void setCustomerDao(CustomerDao customerDao) { this.customerDao = customerDao; } public CustomerTable (){ super("customerTable", new String [] {"id", "name"}); } @Override protected void configureTable(JTable table) { TableColumnModel tcm = table.getColumnModel(); tcm.getColumn(0).setPreferredWidth(100); } protected Object[] getDefaultInitialData() { return this.customerDao.findAll(12L).toArray(); } public String getLabel() { return "customersTable"; } }


Reply With Quote