java - Put JPanel Form in JFrame using Card Layout -


I am creating a Java application. I have 2 forms, a JFARAM form , in which Includes left and right jepieles; And jpnl form which contains content ..

I am having trouble using the card layout for the JPNL form and its contents to the right generic of the JFARAM form.

If you have already added the required place, right on the frame JPanel jpnil form, something like this

  increases the public frameframe JFrame {Private panel form pForm = new PanelForm (); Public frame () {initComponents (); CardLayout Card = New CardLayout (); RightPanel.setLayout (card); RightPanel.add (pForm, "pForm"); }}  

Comments