Hey there bruh...need ur help...when i try to add a jlabel to 1 of the tabs..it gets added as a sub tab instead of being added as a jlabel like u added that jlabel with text in each tab....please luk into dis..i'm at my wits end!!
JTabbedPane internally maintain an index you can know index of your panel the way you added it for example if you added panel 1 then it index is 0 and later if you added panel 2 then it index is 1 like this way you can know index of your panels