java - JPanel in JFrame in NetBeans -


In NetBeans I have created a Java application, in which I designed the JFrame . With the menu bar, and separate JPanels . I want these JPanels to appear on the action of various menu items in JFrame so whenever the menu item is clicked, separate JPanels Should look inside JFrame I have both the JFrame & amp; JPNL separately , but I could not link them together.

Please help me guys

You can use card layouts for it There are several components in the card layout (your cases In JPNL), and you can switch between them. The card layout is easy to add in the Netbeans palette.

Doctor:


Comments