1. java - deactivate a listener stackoverflow.comI have a general question regarding listeners.
Lets say I have two |
2. JTabbedPane ChangeListener stackoverflow.comI need to detect when the selected tab changes, and get its index.
The following code works, but it fires the
|
3. ChangeListener for JTabbedPane - does it know previous index forums.oracle.comHi all, I have gotten a ChangeListener working for a JTabbedPane and getSelectedIndex() reports the newly selected index but I have not found a method that reports what the previous index was. Is there such a method or do I manually have to store the new index after comparing it with the old index, then of course update the old index ... |