ObservableElementList not consistently updating in JTable
2012-01-15 02:54:22 GMT
Could I please get some assistance in looking at something. My application is relatively complex but I’m more than happy to put a test case togther. I’m wondering if someone could point out to me what Im doing wrong.
My problem is that the display of a Bean in the JTable is not updated until I move the selection off the row containing the bean or do something else to trigger a repaint.
I have a chain of eventlists set up as follows:
protected static EventList<Invoice> unoballinvoices = GlazedLists.threadSafeList(new BasicEventList<Invoice>());
private static ObservableElementList.Connector<Invoice> InvoiceConnector = GlazedLists.beanConnector(Invoice.class);
private static EventList<Invoice> allinvoices = new ObservableElementList<Invoice>(unoballinvoices, InvoiceConnector);
private SortedList<Invoice> sortedInvoices = new SortedList<Invoice>(allinvoices, new InvoiceComparator());
private FilterList<Invoice> filteredInvoices = new FilterList(sortedInvoices, componenteditor);
My JTable looks pretty much like this.
EventTableModel invoicesTableModel = new EventTableModel(filteredInvoices, new AllInvoicesTableFormat());
JTable AllInvoicesTable = new JTable(invoicesTableModel);
invoiceEventSelectionModel = new EventSelectionModel(filteredInvoices);
THIS MESSAGE CONTAINS CONFIDENTIAL INFORMATION AND IS INTENDED FOR THE ADDRESSED RECIPIENT(S) ONLY. IF YOU ARE NOT THE INTENDED RECIPIENT YOU ARE NOTIFIED THAT DISCLOSING, COPYING, DISTRIBUTING OR TAKING ANY ACTION IN RELIANCE ON THE CONTENTS OF THIS INFORMATION IS STRICTLY PROHIBITED.