@Test public void testUninstall() { final TableModel oldTableModel = table.getModel(); final ListSelectionModel oldSelectionModel = table.getSelectionModel(); final boolean isSortable = table.isSortable(); final TableCellRenderer oldDefaultRenderer = table.getTableHeader().getDefaultRenderer(); final JXTableSupport support = JXTableSupport.install(table, colors, colorTableFormat, sortedColors, TableComparatorChooser.SINGLE_COLUMN); assertTrue(support.isInstalled()); support.uninstall(); assertFalse(support.isInstalled()); assertNull(support.getTableModel()); assertNull(support.getTableSelectionModel()); assertNull(support.getTableComparatorChooser()); assertNull(support.getTable()); assertNull(support.getTableFormat()); assertEquals(oldTableModel, table.getModel()); assertEquals(oldSelectionModel, table.getSelectionModel()); assertEquals(isSortable, table.isSortable()); assertEquals(oldDefaultRenderer, table.getTableHeader().getDefaultRenderer()); }
public void uninstall() { checkAccessThread(); tableComparatorChooser.dispose(); tableMemento.restoreStateTo(table); tableModel.dispose(); selectionModel.dispose(); tableComparatorChooser = null; tableModel = null; selectionModel = null; tableFormat = null; table = null; tableMemento = null; }
JXTableSupport { public void uninstall() { checkAccessThread(); tableComparatorChooser.dispose(); tableMemento.restoreStateTo(table); tableModel.dispose(); selectionModel.dispose(); tableComparatorChooser = null; tableModel = null; selectionModel = null; tableFormat = null; table = null; tableMemento = null; } }
JXTableSupport { public void uninstall() { checkAccessThread(); tableComparatorChooser.dispose(); tableMemento.restoreStateTo(table); tableModel.dispose(); selectionModel.dispose(); tableComparatorChooser = null; tableModel = null; selectionModel = null; tableFormat = null; table = null; tableMemento = null; } private  JXTableSupport(JXTable table, EventList<E> eventList,
            TableFormat<? super E> tableFormat, SortedList<E> sortedList, Object sortingStrategy); }
JXTableSupport { public void uninstall() { checkAccessThread(); tableComparatorChooser.dispose(); tableMemento.restoreStateTo(table); tableModel.dispose(); selectionModel.dispose(); tableComparatorChooser = null; tableModel = null; selectionModel = null; tableFormat = null; table = null; tableMemento = null; } private  JXTableSupport(JXTable table, EventList<E> eventList,
            TableFormat<? super E> tableFormat, SortedList<E> sortedList, Object sortingStrategy); static JXTableSupport<E> install(JXTable table, EventList<E> eventList,
            TableFormat<? super E> tableFormat, SortedList<E> sortedList, Object sortingStrategy); JXTable getTable(); AdvancedListSelectionModel<E> getTableSelectionModel(); AdvancedTableModel<E> getTableModel(); TableFormat<? super E> getTableFormat(); TableComparatorChooser<E> getTableComparatorChooser(); void uninstall(); boolean isInstalled(); }
JXTableSupport { public void uninstall() { checkAccessThread(); tableComparatorChooser.dispose(); tableMemento.restoreStateTo(table); tableModel.dispose(); selectionModel.dispose(); tableComparatorChooser = null; tableModel = null; selectionModel = null; tableFormat = null; table = null; tableMemento = null; } private  JXTableSupport(JXTable table, EventList<E> eventList,
            TableFormat<? super E> tableFormat, SortedList<E> sortedList, Object sortingStrategy); static JXTableSupport<E> install(JXTable table, EventList<E> eventList,
            TableFormat<? super E> tableFormat, SortedList<E> sortedList, Object sortingStrategy); JXTable getTable(); AdvancedListSelectionModel<E> getTableSelectionModel(); AdvancedTableModel<E> getTableModel(); TableFormat<? super E> getTableFormat(); TableComparatorChooser<E> getTableComparatorChooser(); void uninstall(); boolean isInstalled();  }