title: How to check and prevent changing tab on JTabbedPane?
body: <p>I have tabbed options panel, I want to verify as user tabs to a different panel. I added a ChangeListener but this only fires after they have changed tab, I want to check before the tab changes and prevent the tab change if any of the information in invalid.</p>