Package ca.odell.glazedlists.swing

Examples of ca.odell.glazedlists.swing.TableComparatorChooser.dispose()


        assertTrue(chooser.getSortingColumns().isEmpty());


        // 6. disposing of the TableComparatorChooser should remove all listeners
        assertEquals(initialNumPropertyChangeListenersOnJTable+1, table.getPropertyChangeListeners().length);
        chooser.dispose();
        assertEquals(initialNumPropertyChangeListenersOnJTable, table.getPropertyChangeListeners().length);
        assertEquals(0, firstModel.getTableModelListeners().length);
        assertEquals(1, secondModel.getTableModelListeners().length); // the JTable is still listening to the secondModel

        // replacing the JTable's model should remove the remaining listener from secondModel
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.