/** * Releases the resources consumed by this {@link EventTableModel} so that it * may eventually be garbage collected. * * <p>An {@link EventTableModel} will be garbage collected without a call to * {@link #dispose()}, but not before its source {@link EventList} is garbage * collected. By calling {@link #dispose()}, you allow the {@link EventTableModel} * to be garbage collected before its source {@link EventList}. This is * necessary for situations where an {@link EventTableModel} is short-lived but * its source {@link EventList} is long-lived. * * <p><strong><font color="#FF0000">Warning:</font></strong> It is an error * to call any method on an {@link EventTableModel} after it has been disposed. * As such, this {@link EventTableModel} should be detached from its * corresponding Component <strong>before</strong> it is disposed. */ @Override public void dispose() { // if we created the swingThreadSource then we must also dispose it if (swingThreadSource != null) swingThreadSource.dispose(); swingThreadSource = null; super.dispose(); } }
/** * Releases the resources consumed by this {@link EventTableModel} so that it * may eventually be garbage collected. * * <p>An {@link EventTableModel} will be garbage collected without a call to * {@link #dispose()}, but not before its source {@link EventList} is garbage * collected. By calling {@link #dispose()}, you allow the {@link EventTableModel} * to be garbage collected before its source {@link EventList}. This is * necessary for situations where an {@link EventTableModel} is short-lived but * its source {@link EventList} is long-lived. * * <p><strong><font color="#FF0000">Warning:</font></strong> It is an error * to call any method on an {@link EventTableModel} after it has been disposed. * As such, this {@link EventTableModel} should be detached from its * corresponding Component <strong>before</strong> it is disposed. */ @Override public void dispose() { // if we created the swingThreadSource then we must also dispose it if (swingThreadSource != null) { swingThreadSource.dispose(); } swingThreadSource = null; super.dispose(); } }
/** * Releases the resources consumed by this {@link EventTableModel} so that it * may eventually be garbage collected. * * <p>An {@link EventTableModel} will be garbage collected without a call to * {@link #dispose()}, but not before its source {@link EventList} is garbage * collected. By calling {@link #dispose()}, you allow the {@link EventTableModel} * to be garbage collected before its source {@link EventList}. This is * necessary for situations where an {@link EventTableModel} is short-lived but * its source {@link EventList} is long-lived. * * <p><strong><font color="#FF0000">Warning:</font></strong> It is an error * to call any method on an {@link EventTableModel} after it has been disposed. * As such, this {@link EventTableModel} should be detached from its * corresponding Component <strong>before</strong> it is disposed. */ @Override public void dispose() { // if we created the swingThreadSource then we must also dispose it if (swingThreadSource != null) swingThreadSource.dispose(); swingThreadSource = null; super.dispose(); } }