title: After calling JTabbedPane.removeAll(), the JTabbedPane still has x number of tabs?
body: <p>In my <code>JTabbedPane</code>, I am removing tabs in 2 different ways:</p>
  
  <pre><code>tabbedPane.remove(index)
  </code></pre>
  
  <p>and </p>
  
  <pre><code>tabbedPane.removeAll()
  </code></pre>
  
  <p>Both work fine in terms of closing the tabs. However, I have a change listener on my <code>TabbedPane</code> that calls back to another module to report on tab changes. This is where the problem is.</p>
  
  <p>When adding and removing tabs using <code>remove(index)</code>, the source TabbedPane in the <code>stateChanged()</code> method contains the correct number of tabs when checking <code>tabbedPane.getTabCount()</code>.</p>
  
  <p>However, when calling <code>tabbedPane.getTabCount()</code> after <code>tabbedPane.removeAll()</code>, the count is still the count that was present immediately before the <code>removeAll()</code>.</p>
  
  <p>Does anyone have any suggestions?</p>