I'm having a problem regarding Jpanels so I don't know how to invoke more JPanels separately actually one by one on the same Jframe I'm dealing with 15+ jpanels so it's really helpful to me
actually I want to hide jpanels , I'm dealing with a large registration form so it has 15+ jpanels if someone refer that form(frame) it so complicated .please consider about my problem
You can create each JPanel object separately, and add components to it, and you can change JPanel objects in one JFrame with setContentPane( paneObject ), after which it is good to call revalidate.