@Test @ExecuteOnNonUiThread public void testOnMainThreadUninstallEDTViolation() throws Exception { final InstallRunnable runnable = new InstallRunnable(); EventQueue.invokeAndWait(runnable); try { runnable.getJXTableSupport().uninstall(); fail("failed to receive IllegalStateException because of wrong thread usage"); } catch (IllegalStateException ex) { } EventQueue.invokeAndWait(new Runnable() { @Override public void run() { runnable.getJXTableSupport().uninstall(); } }); }
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();  }