its not disabling the tabs
Why do you think making a panel invisible will disable a tab?
If you want to disable a tab then take a look at the JTabbedPane
API.
Look at all the “setter” methods. You will find a method that allows you to disable individual tabs.
solved I have these 5 panels in my tabbed pane..I want that when the input in my combo box i 2 ..all panels except panel 8 should b disabled [closed]