How to get previous jTabbedPane overlap
<p>I have problem with getting id of previous overlap of jTabbedPane. </p>

<pre><code>ksiegiWieczysteTabbedPane.addChangeListener(new ChangeListener() {
        public void stateChanged(ChangeEvent e) {
            KsiegaWieczystaPanel księgaWieczystaPanel = (KsiegaWieczystaPanel) ksiegiWieczysteTabbedPane.getSelectedComponent();
            if(MainApp.main.showPytanieBox("Czy chcesz zapisać zmiany?")) {       
                if(księgaWieczystaPanel != null) {
                    księgaWieczystaPanel.zapiszWszystko();
                }
            }
        }
    });
</code></pre>

<p>Now I can get the actual clicked overlap but do I have chance to get the previous one? Assume I have 3 overlaps: A,B,C. Now if I click A it is easy to recognize that it is A by <code>ksiegiWieczysteTabbedPane.getSelectedComponent()</code> but when I click B is it possible to know that the previous overlap which was selected were A?</p>