Adding subview from GUI to custom class using Netbeans

89 views Asked by At

I'm using netbeans and its GUI Builder.

I have a Form JFrameTest. I created a PersonPanel JPanel class. I dragged-dropped it into the JFrameTest created by Netbeans. So the JFrameTest used by Netbeans contains auto-generated code.

What I want is to add for example a JTable to my custom PersonPanel JPanel class and have the JTable code inside. But now, when I'm dragging Swing subviews like JTable inside my custom class, the code is always generated in the JFrameTest class created by Netbeans.

How can I do it ?

0

There are 0 answers