I want to show an optionDialog when an user click on a tab in a JTabbedPane but the JTabbedPane must not show the clicked tab before the user selected the right option in the Dialog.
You can extends JTabbedPane to override the setSelectedIndex method and then call super.setSelectedIndex(index); after doing your validation something like:
Don't get me started about those stupid light bulbs.